The Monad Challenges

A set of challenges for jump starting your understanding of monads.


Set 1: Random Numbers

Set 2: Failing Computations

Set 3: Combinations

Set 4: Common Abstraction

Set 5: Do Notation

This project is maintained by mightybyte

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Set 2: Failing Computations

This set deals with programming patterns that arise when dealing with computations that might fail. Failing computations come up all the time in the real world and Haskell can provide great tools for dealing with them.

  1. The Maybe type
  2. Build a library of things that can fail
  3. Chains of failing computations
  4. Generalizing chains of failures
  5. Chaining variations
  6. Tailprod