September 2017
Beginner to intermediate
396 pages
9h 46m
English
We have seen four basic types Int, Double, Char, and Float. More information about these types is given in the following table:
| Type | Description | Remarks |
| 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 | |
| Char | Character | |
| 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 ...
Read now
Unlock full access