Skip main navigation

Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. T&Cs apply

Summary

Summary of the key concepts covered in this activity
A monad is a mechanism for combining computations. It is a typeclass providing the bind and return operations.

To be an actual monadic type, the implementations of
bind and return must conform to the three monad laws.

The Maybe monad illustrates how to create a simple monad and demonstrates its benefits.

© University of Glasgow
This article is from the free online

Functional Programming in Haskell: Supercharge Your Coding

Created by
FutureLearn - Learning For Life