© Stefania Loredana Nita and Marius Mihailescu 2019
Stefania Loredana Nita and Marius MihailescuHaskell Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4507-1_12

12. Monads

Stefania Loredana Nita1  and Marius Mihailescu1
(1)
Bucharest, Romania
 

Monads are important in Haskell, and they are used in many scenarios. The concept of monads can be confusing at first, but in this chapter, you will learn what monads are and how to use them in complex programs.

Introduction

A monad is a way for values to be used in sequences of computations, resulting in a structure of computations. The sequential building blocks can be used to create computations, and the building blocks themselves can be structured as computations. As the official Haskell documentation ...

Get Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.