anchpop / wise_mans_haskell

Free book for learning Haskell
https://andre.tips/wmh/
48 stars 5 forks source link

Typo in "data types with other values" section #8

Closed stz-seongheon closed 5 years ago

stz-seongheon commented 5 years ago

I just found the typo (broken code format), and maybe missing prelude error examples? It takes me some time to understand what can cause that error.


Link

```haskell
data Human = Human {name :: String}
data Dog = Dog {name :: String}
```
anchpop commented 5 years ago

This was a formatting error, thanks for catching it!