Solutions to https://adventofcode.com.
- Get ghcup
- Install
ghc
ghcup install ghc --set 9.10
- Install
cabal-install
ghcup install cabal
- (Optional) Install ghciwatch
cargo install ghciwatch
cabal repl day<N>
ghciwatch --test-ghci 'Test.DocTest.doctest ["src/Day<N>.hs"]'
This will reload the interpreter and run doctests on every file save.