I am using Haskell Stack for a project and I want to include Haste it compile client side logic. I like the fact that Stack abstracts away the different build and install issues among environments and if it builds on my machine, it will build on someone else's.
How do I integrate Haste into the Stack tool chain? Working out one time setup is fine, but I don't want to have to recreate the whole tool chain every time the code moves to a new system.
This should work, but take that with a grain of salt as I'm having extra issues due to this known bug. Make sure your
.cabalfile has the right dependencies, especially theif impl(haste) ..part (see this). Seems like most of the dependencies for Haste (and since Haste uses GHC 7.10.3 as of today) work withlts-6.14, so I used that as resolver.haste-project.cabal
stack.yaml
Then, from the same directory, you can now proceed with the usual setup instructions for Haste, but with Stack complements of the Cabal commands:
Then, you should be able to run all the usual commands, but prefixed with
stack exec --. For example