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$
stack build
fails, you can't exec
the binary because it doesn't exist yet
like this
Installing executable HaskForceCreatedWithStackCommand-exe in ...
stack exec HaskForceCreatedWithStackCommand-exe
Should be called at least in the state COMPONENTS_LOADED, the current state is: CONFIGURATION_STORE_INITIALIZED
Current violators count: 1
java.lang.Throwable
at com.intellij.diagnostic.LoadingState.logStateError(LoadingState.java:56)
at com.intellij.diagnostic.LoadingState.checkOccurred(LoadingState.java:52)
at com.intellij.psi.tree.IElementType.<init>(IElementType.java:100)
at com.haskforce.psi.HaskellElementType.<init>(HaskellElementType.java:11)
at com.haskforce.psi.HaskellTypes.<clinit>(HaskellTypes.java:12)
at com.haskforce.HaskellLanguage.<clinit>(HaskellLanguage.java:32)
at com.haskforce.HaskellFileType.<init>(HaskellFileType.java:13)
at com.haskforce.HaskellFileType.<clinit>(HaskellFileType.java:10)
at com.haskforce.HaskellFileTypeFactory.createFileTypes(HaskellFileTypeFactory.java:10)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.lambda$initStandardFileTypes$3(FileTypeManagerImpl.java:358)