This repository contains the code for the projects in the book Haskell Bookcamp. The code is organized by chapter, each subdirectory containing a README with further comments.
If anything about the code or book seems to be unclear or you spotted an error, you can always join in the discussion in the liveBook discussion form or open an issue in this repository!
In order to compile and run the provided projects you need to have stack installed. Installing it is easiest with the tool GHCup.
If you don't want to install any parts of the Haskell toolchain on your computer locally, then don't panic! The code repository for this book contains a docker file that can be used to build a docker image that has the Haskell toolchain already installed!
When located in the repository you can build an imagine from the docker file like so:
shell $ docker build -t haskell-bookcamp .
After building the image you can get a container running that mounts the repository into /root/repo
where the code can be run. You could also mount your own Haskell projects into the container for ease of use!
shell $ docker run \
-ti \
--mount type=bind,source="$(pwd)",target=/root/repo \
haskell-bookcamp \
bash