Skip to Content
Get Programming with Haskell
book

Get Programming with Haskell

by Will Kurt
March 2018
Beginner
616 pages
16h 53m
English
Manning Publications
Content preview from Get Programming with Haskell

Lesson 28. A peek at the Applicative type class: using functions in a context

After reading lesson 28, you’ll be able to

  • Build an application that handles missing data
  • Extend the power of the Functor type class with the Applicative type
  • Use Applicative to use one data model in many contexts

In the preceding lesson, you learned how the Functor type class allows you to perform computation inside a container such as List or a context such as Maybe and IO. The key method behind Functor is fmap (more commonly, the <$> operator), which works just like map on a list. In this lesson, you’ll work with a more powerful type class called Applicative. The Applicative type class extends the power of Functor by allowing you to use functions that are ...

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

Get Programming with Go

Get Programming with Go

Nathan Youngman, Roger Peppe
Effective Haskell

Effective Haskell

Rebecca Skinner

Publisher Resources

ISBN: 9781617293764Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link