Skip to content

Instantly share code, notes, and snippets.

@mgsloan

mgsloan/paste Secret

Created January 3, 2016 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgsloan/2beeac1531b2ef07c651 to your computer and use it in GitHub Desktop.
Save mgsloan/2beeac1531b2ef07c651 to your computer and use it in GitHub Desktop.
mgsloan@computer:~/fpco/test-stack$ mkdir parent
mgsloan@computer:~/fpco/test-stack$ cd parent
mgsloan@computer:~/fpco/test-stack/parent$ stack new child
Downloading template "new-template" to create project "child" in child/ ...
The following parameters were needed by the template but not provided: category
You can provide them in /home/mgsloan/.stack/config.yaml, like this:
templates:
params:
category: value
Or you can pass each one as parameters like this:
stack new child new-template -p "category:value"
Writing default config file to: /home/mgsloan/fpco/test-stack/parent/child/stack.yaml
Basing on cabal files:
- /home/mgsloan/fpco/test-stack/parent/child/child.cabal
Checking against build plan lts-3.19
Selected resolver: lts-3.19
Wrote project config to: /home/mgsloan/fpco/test-stack/parent/child/stack.yaml
mgsloan@computer:~/fpco/test-stack/parent$ rm child/stack.yaml
mgsloan@computer:~/fpco/test-stack/parent$ echo "invalid" > stack.yaml
mgsloan@computer:~/fpco/test-stack/parent$ cd child
mgsloan@computer:~/fpco/test-stack/parent/child$ stack init
Could not parse '/home/mgsloan/fpco/test-stack/parent/stack.yaml':
AesonException "when expecting a ProjectAndConfigMonoid, encountered String instead"
See http://docs.haskellstack.org/en/stable/yaml_configuration.html.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment