Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text are shown as follows: "We refactor evalTry function by using the bind operator (>>=)"

A block of code is set as follows:

   data Choice a b = L a | R b   
     deriving (Show)

   data Combo a b = Combo a b       
     deriving (Show)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

   data Choice a b = L a | R b   
     deriving (Show)

   data Combo a b = Combo a b       
     deriving (Show)

New terms and important words are shown in bold.

Note

Warnings or important notes appear in a box like this.

Get Haskell Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.