Run stack test
to test parts 1 to 3.
stack test --test-arguments 1
: only test part 1stack test --test-arguments 2
: only test part 2stack test --test-arguments 3
: only test part 3
For part 3, run stack run
to try out the calculator.
If you want more things to do, there are extra bonus tasks in Bonus.hs
.
Run stack test --test-arguments bonus
to run the tests for these.
Solutions are available on the solutions branch.
If you get an error like this
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the following errors:
<stderr>: commitAndReleaseBuffer: invalid argument (invalid character)
(windows moment)
Go to Settings → Time and Language → Language and Region → Administrative language Settings → Change System Locale… → and check Use Unicode UTF-8. You might need to restart your computer.