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

Core

The core package, cats, of the library exposes the following API:

The core package contains a list of all the type classes that are defined by the library. The type classes pattern in the Cats implementation usually consists of a trait and its companion object.

Let's use an example of Monad to take a look at what a typical type class looks like in the context of the library:

Let us now take a closer look at how the type classes in the type class hierarchy of Cats are structured.

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