- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13
Open
Description
In the "Single Digit Math" Chapter:
- Section "A Single Digit" (first code snippet):
 module Data.Charshould be replaced with
 import Data.Char.
- Section "Adding Types":
 The data type has a terminal typeNum Int, but it is instantiated with aCharinisDigit x = Num x.
 Either change theNum InttoNum Charor construct it with the ordinal value of the character:isDigit x = Num ((ord x)-(ord '0'))
Maybe not that important in general, but for someone not proficient in haskell like me, it took a while to find why the codes are not compiling.
Metadata
Metadata
Assignees
Labels
No labels