The Monad Challenges

PureScript Edition

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

Outline

Set 1: Random Numbers

Set 2: Failing Computations

Set 3: Combinations

Set 4: Common Abstraction

Set 5: Do Notation

MCPrelude documentation

This project is maintained by shaunplee and is a fork of the Monad Challenges 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 PureScript 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

Previous Page - Next Page