Skip to Main Content
Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library
book

Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library

by Stefania Loredana Nita, Marius Mihailescu
June 2019
Intermediate to advanced content levelIntermediate to advanced
213 pages
3h 10m
English
Apress
Content preview from Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library
© 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_13

13. Monad Transformers

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

In the previous chapter, you saw how useful monads are. But what if you need operations from two different monads? In this chapter, you will learn how to proceed in such scenarios.

Simple Transformers

We’ll start with a brief description of transformers: a transformer represents a special type that allows you to combine two monads into one monad that uses the properties of both monads . The result of combining two monads is also a monad.

In Haskell, there are two main packages related to monad ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Haskell Data Analysis cookbook

Haskell Data Analysis cookbook

Nishant Shukla

Publisher Resources

ISBN: 9781484245071Purchase LinkPublisher Website