Solutions for Advent of Code 2020 in Haskell
We use Nix
to manage the installation of ghc
and cabal
for us.
If you have Nix
installed on your machine, simply run nix-shell
from the root of this repository.
If you don't, you'll have to install cabal
and ghc
on your own.
Run this command
cabal run day <day>
with <day>
in {1, ..., 25} to get the solutions to
both part 1 and part 2 of the day.
cabal test all --test-show-details=streaming
will compute all days solutions and check that they are correct.