My solutions for AoC 2021.
I am using Haskell as I am learning the language.
I am using Haskell (GHC 8.10.7) with split
.
For each day, simply compile and execute the binary:
> ghc .\day_01.hs
[1 of 1] Compiling Main ( day_01.hs, day_01.o )
Linking day_01.exe ...
> .\day_01.exe
(the answer)
GHCI
docker run -it --rm haskell:8.10
Setup:
> cabal update
> cabal install --only-dependencies
To build:
> cabal build -j
Execute:
> cabal run
> cabal run advent-of-code2021 -- all
> cabal run advent-of-code2021 -- last
build:
> cabal build -j --enable-profiling
Execute:
> cabal run advent-of-code2021 --enable-profiling -- last +RTS -p