Safe Haskell | Safe-Inferred |
---|
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 whereSource
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) |