September 2017
Beginner to intermediate
396 pages
9h 46m
English
Monoid is an important and very useful type class. A Monoid assumes two behaviors:
The simplest example of a Monoid is Integer. We can define an empty value of an Integer as 0. We can then use addition as an operation to combine two Integers. In this recipe, we will define a data type Option and define an instance for Monoid.
Read now
Unlock full access