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

Instances

The instances package exposes the following API:

As you can see from the preceding screenshot, the instances package contains quite a lot of entities. As in the case of the syntax package, the main thing to notice here is the naming convention of these entities. First, we have a set of traits and classes. They are named as follows—the first part of the name is the name of the type for which the instances are defined, and then there's the Instances suffix.

There are also singleton objects, which are named after the types for which the instances are defined.

Let's take a look at what one of the instances traits looks like:

In the ...

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