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

jsaddle-dom-0.9.3.1 breaks build with GHC-8.2 #12

Open
nomeata opened this issue Feb 14, 2019 · 1 comment
Open

jsaddle-dom-0.9.3.1 breaks build with GHC-8.2 #12

nomeata opened this issue Feb 14, 2019 · 1 comment

Comments

@nomeata
Copy link

nomeata commented Feb 14, 2019

Sorry for complaining about old compiler versions… but I get

[  2 of 599] Compiling JSDOM.Types      ( src/JSDOM/Types.hs, dist/build/JSDOM/Types.js_o )

src/JSDOM/Types.hs:1037:9: error:
    • Variable not in scope: (<>) :: t0 -> String -> t1
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude.Compat),
        ‘*>’ (imported from Prelude.Compat),
        ‘<$’ (imported from Prelude.Compat)
     |
1037 |         <> T.unpack destType <> " requested."
     |         ^^

src/JSDOM/Types.hs:1037:30: error:
    • Variable not in scope: (<>) :: t1 -> [Char] -> IO obj'
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude.Compat),
        ‘*>’ (imported from Prelude.Compat),
        ‘<$’ (imported from Prelude.Compat)
     |
1037 |         <> T.unpack destType <> " requested."
     |                              ^^
cabal: Failed to build jsaddle-dom-0.9.3.1 (which is required by
exe:kaleidogen from kaleidogen-0.1). See the build log above for details.

with ghcjs-8.2.

This was broken with #11, which made it work with GHC-8.4, but not GHC-8.2. Maybe you don’t care about GHC-8.2 (fair enough), in that case you could edit the metadata on hackage to tighten the bounds.

@nomeata
Copy link
Author

nomeata commented Feb 14, 2019

Oh, or simply use

import Data.Monoid.Compat ((<>))

I believe.

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

No branches or pull requests

1 participant