| Safe Haskell | Safe-Infered |
|---|
ToolShed.Defaultable
Contents
Description
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.
Instances
| (Defaultable a, Defaultable b) => Defaultable (a, b) |