-
-
Save mgsloan/2beeac1531b2ef07c651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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