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
protolude 0.1.6: fix ambiguous occurrences #2225
protolude 0.1.6: fix ambiguous occurrences #2225
Conversation
Is this causing a build to break? Also, could you please update |
Yes, GHC 8.0.1
etc. |
I'll update contributors in a bit, since that will change the checksum of the PR patch link in Homebrew/homebrew-core#2905 |
I can merge it as two separate commits. |
ab8b376
to
27ae3b9
Compare
@paf31 PR refreshed. |
Sorry, looks like this happened because of protolude 0.1.5 -> 0.1.6. Should've maybe been more conservative with the bounds... |
@kritzcreek Yes, that's why. Note the 🍏 for Travis now with nightly-2016-07-11 and lts-6.7 |
Ahh so CI didn't catch it, because you compile PS with a newer snapshot than the one our CI used. Allright I get it. EDIT: Does that mean we need a protolude > 0.1.5 bound in the cabal file now? |
No, actually we compile with straight up cabal, no Stack involved. But when I realized that the problem was 0.1.5, I figured I'd try bumping your LTS and Nightly for Stack, which led to some warnings failures and a hard error for fromJust. The bounds in purescript.cabal should also be bumped a bit too, I suppose. |
Yup. |
4df9cac
to
839f595
Compare
@paf31 @kritzcreek PR refreshed. |
👍 thanks! |
1c65b55
to
3ac08d7
Compare
Did something change to prevent the cc-osx-lts-sdist failure on Travis? |
@ilovezfs the osx instances are a bit flaky. What a great commit message! |
Thanks :) |
|
Prevent PureScript build failure with protolude 0.1.6 due to ambiguous occurrence errors arising from the following conflicts: Protolude.fromStrict vs. Data.ByteString.Lazy.fromStrict Protolude.decodeUtf8 vs. Data.Text.Lazy.Encoding.decodeUtf8 Protolude.encodeUtf8 vs. Data.Text.Lazy.Encoding.encodeUtf8 In order to preserve the ability to use "fromStrict" without qualifying it (e.g., Z.fromStrict), this fixes the ambiguous occurrences in a way that is backwards incompatible with protolude 0.1.5. In particular, using fromStrict without qualification requires hiding it, but since protolude 0.1.5 doesn't actually export fromStrict, importing 0.1.5 hiding fromStrict will trigger a dodgy imports warning. Bumping the protolude dependency to >= 0.1.6 requires bumps to PureScript's designated Stack LTS and Nightly resolvers. Switching to lts-6.7 and nightly-2016-07-19 requires a few unrelated fixes: System.FilePath: remove redundant imports (-Wunused-imports) parseURL: replace with non-deprecated parseRequest (-Wdeprecations) fromJust: import from Data.Maybe instead of Unsafe (prevents error) Also set protolude >=0.1.6 and http-client >= 0.4.30 (for parseRequest) in purescript.cabal, and update the CONTRIBUTORS file.
3ac08d7
to
b2e4800
Compare
@phadej Thanks for catching that. It should be fixed now. |
Does this add any new dependencies? We might need to rerun the license generator. |
None I know of, since http-client is already in the license file. |
Thanks! |
Cool, thanks @paf31! |
Prevent PureScript build failure with protolude 0.1.6 due to
ambiguous occurrence errors arising from the following conflicts:
Protolude.fromStrict vs. Data.ByteString.Lazy.fromStrict
Protolude.decodeUtf8 vs. Data.Text.Lazy.Encoding.decodeUtf8
Protolude.encodeUtf8 vs. Data.Text.Lazy.Encoding.encodeUtf8
In order to preserve the ability to use "fromStrict" without qualifying
it (e.g., Z.fromStrict), this fixes the ambiguous occurrences in a way
that is backwards incompatible with protolude 0.1.5. In particular,
using fromStrict without qualification requires hiding it, but since
protolude 0.1.5 doesn't actually export fromStrict, importing 0.1.5
hiding fromStrict will trigger a dodgy imports warning.
Bumping the protolude dependency to >= 0.1.6 requires bumps to
PureScript's designated Stack LTS and Nightly resolvers. Switching to
lts-6.7 and nightly-2016-07-19 requires a few unrelated fixes:
System.FilePath: remove redundant imports (-Wunused-imports)
parseURL: replace with non-deprecated parseRequest (-Wdeprecations)
fromJust: import from Data.Maybe instead of Unsafe (prevents error)
Also set protolude >=0.1.6 and http-client >= 0.4.30 (for parseRequest)
in purescript.cabal, and update the CONTRIBUTORS file.