Run
, which will generate the run config for you
Haskell Stack Run
is for running your compiled binary, not for running ghc
Build with Stack
stack new
stack new
works, you should be able to just import the project using HaskForce as well, just choose the Stack
model 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:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
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
Project1
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
new-host-10:Project1 barryburd$