Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- A simple interface which data-types with a default-value can implement.
- class Defaultable a where
- defaultValue :: a
Type-classes
class Defaultable a where Source
An interface to which data which have a default-value can adhere.
:: a | The default value of the data-type. |
(Defaultable a, Defaultable b) => Defaultable (a, b) | |
(Defaultable a, Defaultable b, Defaultable c) => Defaultable (a, b, c) |