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

Implementations

In order to run this application against a given environment, we need to specify the effect type we are going to be working under. Besides the target effect type, we need to find the implementation for all of the implicit dependencies that our function requires. The beauty of the Tagless Final pattern is that we can run the function against any environment, as long as we can provide the implementation of our implicit dependencies for this environment and for the effect type of our choice.

The first step is to specify the effect type. A good choice would be Future, since it is a concurrency primitive, and capable of representing a wide range of computations. So, with the effect type set to Future, we will have our method called ...

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