|
HAppS.Data.Default | Portability | Not portable | Stability | experimental | Maintainer | AlexJacobson@HAppS.org |
|
|
|
|
|
Description |
Provides default values for Haskell datatypes.
|
|
Synopsis |
|
|
|
|
The interface
|
|
|
The Default class provides a defaultValue value, which
is the default value for that type.
There is no instance for arbitrary types by default, but if you
declare an instance without providing the value then one will be
built using the first constructor. defaultValue is used to provide
values for any arguments of the constructor.
If you want an instance for all types then import
HAppS.Data.Default.Generic.
| | Methods | | | Instances | |
|
|
Writing your own instances
|
|
|
This is the defaultValue that is used in an instance if you don't
specify one. It may be a useful building block when writing your own
instances.
|
|
Advanced usage
|
|
|
When writing your own generic functions for Default you may
need to access the class method through this datatype rather than
directly.
| Constructors | | Instances | |
|
|
|
When writing your own generic functions for Default you may
need this, the proxy value.
|
|
Produced by Haddock version 2.1.0 |