Advent of Code 2023 in Haskell
To download the puzzle inputs, copy the .env.example
file into .env
and
fill in the session with your cookie from the aoc website. Then you can run
Then run the main script to download and solve all the puzzles.
./aoc.sh
To run a day and read the input from stdin use
stack run day%%
where the format of the day is 2 digits (01, 02, ... 20, 21)
You can also just download the input
./get
to download the necessary input files.
To run the project in watch mode (it will rerun the day that you modify) run
./watcher.sh
To build the project you can use
make
To run one day in particular you can run
make Day%
where %
is the day number with 2 digits (01, 02, ... 20, 21). This will read
the input that you get using get
.