Solutions to https://adventofcode.com.
This repository prescribes no package management beyond Hackage dependencies.
You need ghc
and cabal-install
to compile and run the code.
- Get ghcup
- Install
ghc
ghcup install ghc 8.10
- Install
cabal-install
ghcup install cabal
- (Optional) Install ghcid
cabal install ghcid
- (Optional) Install doctest
cabal install doctest
cabal repl
ghcid
This will reload the interpreter and run doctests on every file save. Requires both ghcid and doctest to be on your PATH
.