Haskell Stack Runis for running your compiled binary, not for running ghc
Build with Stack
stack newworks, you should be able to just import the project using HaskForce as well, just choose the
Stackmodel when importing
new-host-10:HaskellProject barryburd$ stack new Project1
Downloading template "new-template" to create project "Project1" in Project1/ ...
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /Users/barryburd/.stack/config.yaml, like this:
Or you can pass each one as parameters like this:
stack new Project1 new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
Selecting the best among 14 snapshots...
Downloaded lts-12.24 build plan.
AesonException "Error in $.packages.cassava.constraints.flags: failed to parse field packages: failed to parse field constraints: failed to parse field flags: Invalid flag name: \"bytestring--lt-0_10_4\""
new-host-10:HaskellProject barryburd$ ls
new-host-10:HaskellProject barryburd$ cd Project1
new-host-10:Project1 barryburd$ ls
ChangeLog.md Project1.cabal Setup.hs package.yaml test
LICENSE README.md app src
stack buildfails, you can't
execthe binary because it doesn't exist yet
Installing executable HaskForceCreatedWithStackCommand-exe in ...