Closed fcracker79 closed 3 years ago
Hello, yes, it is documented in the Getting Started section. Perhaps it is not well written so it confuses users? 🤔
In the Using the template subsection:
Now, add the following to your stack.yaml file:
packages: - . extra-deps: - aws-lambda-haskell-runtime-3.0.0
Regarding the cabal
file, have you changed something inside of it before running stack build
? That might be the case
Sorry, my fault, I did not see the first two lines. Yes, I changed trivial stuff, such as the maintainer and so on.
Thanks for your support and apologies for the trivial question...
No need to be sorry, this is the place to ask questions 😄 !
Yes, the idea is that you change the package.yaml
file instead of the cabal
one :)
I am trying to create my first project as follows:
stack new <my_project> https://github.com/theam/aws-lambda-haskell-runtime/raw/master/stack-template.hsfiles --resolver=lts-15.16 --omit-packages
aws-lambda-haskell-runtime-3.0.0
inextra-deps
section ofstack.yaml
filestack build
The output is the following error message:
As a Haskell newbie, I tried to add the following snippet in
stack.yaml
file:I have no idea of what I did but now the
stack build
command seems to be proceeding. In the end, it produced the following message:I removed the cabal file and it worked smoothly.
I use Stack 2.3.3, Cabal 1.24.0.2 and Glasgow Haskell 8.0.2.