Advent of Code 2023 solutions
Build with ghc >= 9.6.3 and cabal-install >= 3.10.2.0.
Solutions are located in src/Solutions
- Day 1
- Day 2
- Day 3
- Day 4
- Day 5
- Day 6
- Day 7
- Day 8
- Day 9
- Day 10
- Day 11
- Day 12
- Day 13
- Day 14
- Day 15
- Day 16
Usage:
aoc2023 --day={1-25} --part={1,2} --inputs_dir=<PATH_TO_PUZZLE_INPUTS>
--day:1-25--part:1or2--inputs_dir: Path to a directory containing puzzle inputs. Puzzle inputs should be named<DAY>.txtwithout any leading zeroes.
Example:
aoc2023 --day=4 --part=1 --inputs_dir=./inputs
To launch a REPL with all solution modules loaded (imported qualified as
S<DAY>), run the repl script (requires expect to be installed):
./repl
...
aoc>
Re-exports from app/GHCI.hs, like S01 will now exported.