question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ghc `stack build` not working for `concur-vdom`

See original GitHub issue

The 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:open
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mpdairycommented, Sep 23, 2017

@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’s Proxy), then use this library: https://github.com/plow-technologies/ghcjs-servant-client to generate the functions that call the api. I also used Network.Wai.Middleware.Cors on the server to avoid cross origin errors while I’m developing.

0reactions
robinvdcommented, Sep 23, 2017

@mpdairy is servant working with ghcjs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found