Skip to Content
Learn You a Haskell for Great Good!
book

Learn You a Haskell for Great Good!

by Miran Lipovaca
April 2011
Beginner
400 pages
12h 45m
English
No Starch Press
Content preview from Learn You a Haskell for Great Good!

Chapter 14. For a Few Monads More

You’ve seen how monads can be used to take values with contexts and apply them to functions, and how using >>= or do notation allows you to focus on the values themselves, while Haskell handles the context for you.

You’ve met the Maybe monad and seen how it adds a context of possible failure to values. You’ve learned about the list monad and seen how it lets us easily introduce nondeterminism into our programs. You’ve also learned how to work in the IO monad, even before you knew what a monad was!

In this chapter, we’ll cover a few other monads. You’ll see how they can make your programs clearer by letting you treat all sorts of values as monadic ones. Further exploration of monads will also solidify your intuition ...

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

Effective Haskell

Effective Haskell

Rebecca Skinner
Learning Go

Learning Go

Jon Bodner

Publisher Resources

ISBN: 9781457100406Errata Page