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

ghc stack build not working for concur-vdom #4

Open
mpdairy opened this issue Sep 19, 2017 · 7 comments
Open

ghc stack build not working for concur-vdom #4

mpdairy opened this issue Sep 19, 2017 · 7 comments
Labels

Comments

@mpdairy
Copy link

mpdairy commented Sep 19, 2017

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.

@ajnsit
Copy link
Owner

ajnsit commented Sep 20, 2017

Yeah the ghc build needs a bunch of work to stub out things. I will put it on my todo list.

@ajnsit ajnsit added the TODO label Sep 20, 2017
@ajnsit
Copy link
Owner

ajnsit commented Sep 22, 2017

I pushed some commits to enable building Concur-React with GHC. To try it out, just run stack build in concur-react or concur-react-components/sortable-tree.

Concur-VDOM is lower in my list because that will require changes to the ghcjs-vdom and ghcjs-ffiqq libraries, but I'll get around to it eventually.

@mpdairy
Copy link
Author

mpdairy commented Sep 22, 2017

Ok, thanks. I got concur-react to build with ghc and then started converted my project to it, but the -react version has fewer functions and examples, so for now I'll just try to build my little dashboard with the -vdom version and see how it goes.

@mpdairy
Copy link
Author

mpdairy commented Sep 23, 2017

Hey, just wanted to let you know that I used Concur (vdom) for a few hours and I really love it so far. I made a list of expandable items (with new IO servant api queries that load their info when they are clicked to expand, and back buttons), only using monadic flow. It was really fun and concise.

@ajnsit
Copy link
Owner

ajnsit commented Sep 23, 2017

That's good to hear! 👍 Do let me know if something turns out to be cumbersome or not work as expected. I'll be happy to refine the API to suit the most common use cases!

@robinvd
Copy link

robinvd commented Sep 23, 2017

@mpdairy is servant working with ghcjs?

@mpdairy
Copy link
Author

mpdairy commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants