Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

A motivation for organizing type classes into systems and libraries

The basic principle of engineering is abstracting away what repeats. In the previous chapters, we saw how functional programming deals with effect types extensively and encapsulates side effects into them. This is because working with them directly can be tedious. It is pretty hard to analyze these data structures in an ad hoc using only the services provided to you by your programming language of choice. Hence, patterns of working with effect types get abstracted away into type classes.

So far, we have only seen a small amount of type classes. However, the most important thing to realize is the principle behind their creation, that is, realizing how the type classes get ...

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

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content