We have seen four basic types Int, Double, Char, and Float. More information about these types is given in the following table:
|Int||Fixed precision integer type||
Range [-9223372036854775808 to
9223372036854775807] for 64-bit Int.
|Float||Single precision (32-bit) floating point number|
|Double||Double precision (64-bit) floating point number|
|Bool||Boolean values||True or False|
In previous sections of this recipe, when we ran the command :info Bool, at GHCi prompt, Haskell also showed various instances of information. It shows more about the behavior of the type. For example, instance Eq Bool means that the type Bool is an ...