A few things that are good to know:
You can do this manually before running build.sh
.
$ docker pull fpco/stack-build:lts-15.16
The code won't build on OSX (and maybe other OSs) because the need of static linking.
If you want to build and test something locally, you can uncomment the linking
lines in package.yaml
:
# ghc-options: -O2 -static -threaded
# cc-options: -static
# ld-options: -static -pthread
Note that this won't produce an executable that can be used as a lambda.