Run a day using cabal run day[number]
, e.g. cabal run day3
.
In .aoc put one line with year, and one with a session cookie, see .aoc.example for example.
To fetch a days description and your input use:
cabal run fetch [day]
Days should save solutions in ./answer/day[number]-part[number]
To actually submit your solutions use
cabal run submit [day] [part]
To build my solutions you're going to need a decently recent version of GHC, since I use GHC2021. I've built them all using GHC 9.4.7.