Common types

The Haskell standard library (a package called base) provides various basic data types. Here we demonstrate only a few of them.

Strings can be joined together with ++.

Integers are unbounded whole numbers.

Floating-point numbers can be fractional.

Operations on floating-point numbers are subject to rounding error.

Next: