Skip to content

gregberns/HaskellKoans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell Koans

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.

What are Koans?

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

Getting Started

Pre-requisites

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

Koans

Execute the following commands in a terminal:

git clone https://github.com/gregberns/HaskellKoans
cd HaskellKoans

stack build
stack test

Contributing

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published