Skip to Content
Effective Haskell
book

Effective Haskell

by Rebecca Skinner
July 2023
Intermediate to advanced content levelIntermediate to advanced
670 pages
17h 13m
English
Pragmatic Bookshelf
Content preview from Effective Haskell

Serializing with Type Classes

Using Show and Read in our prototype certainly made things easier on us when we were serializing and deserializing things, but that wasn’t the only benefit. It also meant that we didn’t have to think much about how users would interact with our library. Show and Read are both common type classes that have implementations for most basic types, and our users might already have them implemented for their own data.

Now that we’re going to be dropping these type classes in favor of something that works more reliably for our problem, we are going to need to ensure that we’re still giving users the ability to interact with our library using whatever types they happen to be using to represent their own file data. We’ll ...

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

Grokking Functional Programming

Grokking Functional Programming

Michal Plachta
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9798888650400Errata Page