Skip to content

typesafety/aoc2023

Repository files navigation

Build with ghc >= 9.6.3 and cabal-install >= 3.10.2.0.

Solutions are located in src/Solutions

Usage

Usage:

aoc2023 --day={1-25} --part={1,2} --inputs_dir=<PATH_TO_PUZZLE_INPUTS>
  • --day: 1-25
  • --part: 1 or 2
  • --inputs_dir: Path to a directory containing puzzle inputs. Puzzle inputs should be named <DAY>.txt without any leading zeroes.

Example:

aoc2023 --day=4 --part=1 --inputs_dir=./inputs

REPL

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.

About

Solutions for Advent of Code 2023

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published