Koans to help learn Haskell.
NOTICE This repository is incomplete. If you are intested in extending, please feel free to fork and submit a pull request.
Essentially, you clone a github repository that has 200 or so failing test cases. Then, you work your way through the test cases, writing functions and filling in the blanks, getting the tests to pass one by one. The first few tests are very basic and assume no prior knowledge of the language, and then they build on each other, moving to more advanced topics.
http://www.lauradhamilton.com/learn-a-new-programming-language-today-with-koans
The Haskell platform and Haskell Stack need to be installed,
Use the two links below to get the Haskell platform and Haskell Stack installed.
https://www.haskell.org/platform/
https://docs.haskellstack.org/en/stable/README/
Or if on Mac, use Homebrew to install:
brew install haskell
brew install haskell-stack
Execute the following commands in a terminal:
git clone https://github.com/gregberns/HaskellKoans
cd HaskellKoans
stack build
stack test
- Add __ to koans
- Add more koans to existing topics
- Add new topics, such as:
- Multi-parameter Types
- Recursion
- Records
- Type Signatures
- Lambdas
- ADT (Algebraic Data Types)
- See 'NNext' koan for other ideas
- Make sure "Getting Started" works for new environments
- See if the message returned when __ is good enough