/advent-of-code2023

Advent of Code 2023 in Haskell

Primary LanguageHaskell

CI codecov

advent-of-code2023

https://adventofcode.com/2023

Calendar

...

How to build and run locally

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.