ghc `stack build` not working for `concur-vdom`
See original GitHub issueThe ghcjs version compiles perfectly, but now I’m trying to get the regular ghc version compiling so I can use it with ghci in emacs. concure-core
compiles with ghc, but concur-vdom
has this error:
Warning: Directory listed in concur-vdom.cabal file does not exist: ghc-src
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for concur-vdom-0.1.0.0:
concur-core must match -any, but the stack configuration has no specified version
jsaddle-webkit2gtk must match -any, but the stack configuration has no specified version
(latest applicable is 0.9.4.0)
needed since concur-vdom-0.1.0.0 is a build target.
Recommended action: try adding the following to your extra-deps in /home/teddy/haskell/superpowerscorp/concur/concur-vdom/stack.yaml:
- jsaddle-webkit2gtk-0.9.4.0
You may also want to try the 'stack solver' command
Plan construction failed.
I got a little further by adding jsaddle-webkit2gtk as well as including the concur-core
directory in stack.yaml
, but then it spits out a bunch of other dependency problems.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@robinvd Yep, you just have to move your servant api definition and proxy into some common place (and use
Data.Proxy(Proxy)
instead of Servant-server’sProxy
), then use this library: https://github.com/plow-technologies/ghcjs-servant-client to generate the functions that call the api. I also usedNetwork.Wai.Middleware.Cors
on the server to avoid cross origin errors while I’m developing.@mpdairy is servant working with ghcjs?