This is a collection of exercises for learning Haskell. Each exercise comes with tests for verifying your solution.
I suggest you do the exercises in this order:
- Functions
- Maybe
- PatternMatching
- Recursion
- RecursionSchemes
- UpdateRecords
- HigherOrderFunctions
- QuickCheck
- LogParser
- ProjectEuler
- TextCalculator
- Regex
- BinTree
- Vigenere
You are free to use these exercises in workshops and other learning material.
It's all a bit rough around the edges and pull requests are most welcome :)
- Install Stack
- Clone this repo
- Inside the
exercises
directory, runstack setup
once to install GHC - To build and run the tests:
stack test
(orstack test --file-watch
if you want to rerun the tests automatically after making a change)