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 4: Common Abstraction

  1. Generalizing State and Maybe
  2. A missed generalization
  3. Formalizing the pattern
  4. Creating instances
  5. Revisiting other generic functions
  6. Using the abstraction

Previous Page - Next Page