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 haskell-simple-calculator-exe
or passing arguments
stack exec haskell-simple-calculator-exe -- -v doctor
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.