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

Free Monad

The Free Monad pattern is a stronger version of the Tagless Final pattern. Actually, the free object is a structure from abstract algebra. Hence the name comes from this domain.

The application of the pattern is rather limited, and most likely we will not encounter any real necessity for the pattern while only starting purely functional programming. So we will not go in depth about the Free Monad here. However, we will describe in general how it works.

Basically, the idea behind the Free Monad is that all of our computations become a value. The idea is that whenever we define our application, it does not really execute itself, but constructs an abstract syntax tree that describes the application that we can run later. And it is ...

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