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

purescript 0.9.2 #2905

Closed
wants to merge 1 commit into from
Closed

Conversation

ilovezfs
Copy link
Contributor

@ilovezfs ilovezfs commented Jul 11, 2016

needed to patch ambiguous occurrence errors

@BrewTestBot BrewTestBot added the in progress Stale bot should stay away label Jul 11, 2016
@schrepfler
Copy link
Contributor

Any idea why this broke on the CI server, commit seems OK as I would have thought to commit it (sha matches).

@ilovezfs
Copy link
Contributor Author

[115 of 137] Compiling Language.PureScript.Ide.Pursuit ( src/Language/PureScript/Ide/Pursuit.hs, dist/dist-sandbox-175d3357/build/Language/PureScript/Ide/Pursuit.o )

src/Language/PureScript/Ide/Pursuit.hs:56:32: error:
    Ambiguous occurrence ‘fromStrict’
    It could refer to either ‘Protolude.fromStrict’,
                             imported from ‘Protolude’ at src/Language/PureScript/Ide/Pursuit.hs:22:1-26
                             (and originally defined in ‘Data.Text.Lazy’)
                          or ‘Data.ByteString.Lazy.fromStrict’,
                             imported from ‘Data.ByteString.Lazy’ at src/Language/PureScript/Ide/Pursuit.hs:26:49-58

src/Language/PureScript/Ide/Pursuit.hs:68:30: error:
    Ambiguous occurrence ‘fromStrict’
    It could refer to either ‘Protolude.fromStrict’,
                             imported from ‘Protolude’ at src/Language/PureScript/Ide/Pursuit.hs:22:1-26
                             (and originally defined in ‘Data.Text.Lazy’)
                          or ‘Data.ByteString.Lazy.fromStrict’,
                             imported from ‘Data.ByteString.Lazy’ at src/Language/PureScript/Ide/Pursuit.hs:26:49-58

Probably due to a new version of one of deps.

@ilovezfs
Copy link
Contributor Author

ilovezfs commented Jul 11, 2016

@schrepfler It's a regression introduced by purescript/purescript@8063c4d

This fixes it:

diff --git a/src/Language/PureScript/Ide/Pursuit.hs b/src/Language/PureScript/Ide/Pursuit.hs
index 9032a34..d7164fa 100644
--- a/src/Language/PureScript/Ide/Pursuit.hs
+++ b/src/Language/PureScript/Ide/Pursuit.hs
@@ -19,7 +19,7 @@ module Language.PureScript.Ide.Pursuit
   , findPackagesForModuleIdent
   ) where

-import           Protolude
+import           Protolude hiding (fromStrict)

 import qualified Control.Exception             as E
 import           Data.Aeson
diff --git a/src/Language/PureScript/Ide/Util.hs b/src/Language/PureScript/Ide/Util.hs
index 4e4c235..7ccf217 100644
--- a/src/Language/PureScript/Ide/Util.hs
+++ b/src/Language/PureScript/Ide/Util.hs
@@ -27,7 +27,7 @@ module Language.PureScript.Ide.Util
   , module Language.PureScript.Ide.Conversions
   ) where

-import           Protolude
+import           Protolude hiding (decodeUtf8, encodeUtf8)
 import           Data.Aeson
 import qualified Data.Text                     as T
 import           Data.Text.Lazy.Encoding       (decodeUtf8, encodeUtf8)

@schrepfler
Copy link
Contributor

So what's the plan, commit upstream and wait for new tag?

@ilovezfs
Copy link
Contributor Author

@schrepfler no, I've opened an upstream PR and will apply it as a patch to this PR in the next few minutes: purescript/purescript#2225

@ilovezfs
Copy link
Contributor Author

@DomT4 PR refreshed.

@schrepfler you can try it locally if you do brew pull 2905

@DomT4
Copy link
Member

DomT4 commented Jul 11, 2016

@ilovezfs 👍 when you're happy. LGTM. Thanks for filing a PR upstream as well!

@schrepfler
Copy link
Contributor

Are we merging it then?

@ilovezfs
Copy link
Contributor Author

@schrepfler sure. The issues being discussed with upstream regarding the PR are about bumping their Stack requirements which has no effect over here so I'll just refresh this once that's set in stone, hopefully with a new tag too.

restrict protolude to 0.1.5 to avoid "ambiguous occurrence" errors
@ilovezfs ilovezfs force-pushed the purescript-0.9.2 branch 5 times, most recently from 48b6aad to 2f72e9d Compare July 12, 2016 16:05
@ilovezfs ilovezfs closed this in bc1748f Jul 12, 2016
@BrewTestBot BrewTestBot removed the in progress Stale bot should stay away label Jul 12, 2016
@ilovezfs
Copy link
Contributor Author

@schrepfler 🚢'd

@ilovezfs
Copy link
Contributor Author

Woo hoo upstream PR just merged! purescript/purescript@15c466f

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants