The exercises are meant to be solved in a test-driven way. There are per-module test suites under Tests/
and an AllTests
module that contains all the tests.
Suggested order:
- GettingStarted
- Functions
- PartialApplication
- Recursion
- RecursionSchemes
- CreditCardNumberValidator
- PatternMatching
- HigherOrderFunctions
- ProjectEuler
- QuickCheckExamples
- Vigenere
A simple way of running the tests locally is to use the command
$ runhaskell Tests/<test name>.hs`
e.g. runhaskell Tests/GettingStartedTests.hs
.
See CheatSheet.hs
for examples of Haskell syntax and the use of some common
functions.