Zusammenfassung der Ressource
Haskell - Types and Typeclasses
- Exits many types of variables
- The functions have a type
- Is possible know the type of a function
- :t
- Haskell also have the most common types of varibles
- Int
- Integer
- Float
- Double
- Bool
- Char
- There are funcions for all the types
- Eq
- Ord
- Show
- Read
- Enum
- Bounded
- Num
- class constraint
- Offer the option to work with an only type of data
- Most expressions are such that the compiler can infer what their type is by itself
- Typeclasses
- Haskell has type inference
- we don't have to explicitly write out the types of our functions and expressions