June 2019
Intermediate to advanced
213 pages
3h 10m
English
In Chapter 3, you saw that GHC contains predefined functions, and you worked a little with the div function. In that example, we subtly introduced types, without a comprehensive discussion. It is time to discuss them now. So, in this chapter, you’ll learn about the main types in Haskell, how you can define your own types, and how the type system in Haskell works.
Char represents a Unicode character.
Bool represents a Boolean value . There ...