- Day 1: problem | solution | test | vanilla solution | test 🌲
- Day 2: problem | solution | test 🌲
- Day 3: problem | solution | test NOT DONE
- Day 4: problem | solution | test 🌲
- Day 5: problem | solution | test NOT DONE
- Day 6: problem | solution | test NOT DONE
- Day 7: problem | solution | test NOT DONE
- Day 8: problem | solution | test NOT DONE
- Day 9: problem | solution | test NOT DONE
- Day 10: problem | solution | test NOT DONE
...
The project uses the Haskell tool stack.
Assuming stack
is installed in the system, the project can be build by running
stack build
To build and also run the tests, run
stack test
which is equivalent to
stack build --test
To run with test coverage
stack test --coverage
which generates a textual and HTML report.
To run the executable,
stack exec advent-of-code2023-exe
or passing arguments
stack exec advent-of-code2023-exe -- -d <day> -f <filename>
For faster feedback loop,
stack test --fast --file-watch
To run ghci
(with a version compatible with the resolver) run
stack ghci
For more information, refer to the stack
official docs.