Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #2172: allow escape sequences in JS FFI exported using strings #2174

Merged
merged 1 commit into from
May 31, 2016

Conversation

michaelficarra
Copy link
Contributor

Fixes #2172.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 56.033% when pulling feb3e0a on michaelficarra:GH-2172 into 3944c6e on purescript:0.9.

@michaelficarra
Copy link
Contributor Author

Some of the Travis builds passed and some failed 😕. Not sure what to do.

@hdgarrood
Copy link
Contributor

Is examples/passing/2172.js being included in the source distribution? If not, the purescript.cabal file may need amending. It looks like the OSX builds may be failing because of a corrupted cache or a bug in the build script anyway though, which I can investigate this weekend if nobody else gets there first.

@michaelficarra
Copy link
Contributor Author

Thanks, @hdgarrood. I've amended the purescript.cabal file to include examples/passing/*.js.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 56.033% when pulling 90745e9 on michaelficarra:GH-2172 into 3944c6e on purescript:0.9.

trimStringQuotes :: String -> String
trimStringQuotes str = reverse $ drop 1 $ reverse $ drop 1 $ str
strValue :: String -> String
strValue str = go $ reverse $ drop 1 $ reverse $ drop 1 str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So language-javascript gives the raw escaped string, straight out of the JS source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, unfortunately.

@paf31
Copy link
Contributor

paf31 commented May 31, 2016

Thanks for this! I've cleared out the build cache in Travis, so we'll see what happens.

@paf31
Copy link
Contributor

paf31 commented May 31, 2016

CI passes with the cache cleared out.

Is this ready to merge then? If so, I'll merge this and 0.9 into master, and then we can release 0.9.1 tomorrow.

@michaelficarra michaelficarra force-pushed the GH-2172 branch 2 times, most recently from d1bcfd6 to 49694cd Compare May 31, 2016 01:05
@michaelficarra
Copy link
Contributor Author

@paf31 Should be good to go once CI finishes.

@paf31
Copy link
Contributor

paf31 commented May 31, 2016

Failing due to -Werror and

In an equation for `go': Patterns not matched: []

@michaelficarra
Copy link
Contributor Author

@paf31 Fixed (even though it's unreachable 😓).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 56.032% when pulling 17c486d on michaelficarra:GH-2172 into 3944c6e on purescript:0.9.

@paf31 paf31 merged commit 8fd0638 into purescript:0.9 May 31, 2016
@paf31
Copy link
Contributor

paf31 commented May 31, 2016

Thanks!

@michaelficarra michaelficarra deleted the GH-2172 branch May 31, 2016 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants