| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Data.Default.Class
- class Default a where
Documentation
This module defines a class for types with a default value.
It also defines Default instances for the types Int, Int8,
Int16, Int32, Int64, Word, Word8, Word16, Word32, Word64,
Integer, Float, Double, Ratio, Complex, CShort, CUShort,
CInt, CUInt, CLong, CULong, CLLong, CULLong, CPtrdiff,
CSize, CSigAtomic, CIntPtr, CUIntPtr, CIntMax, CUIntMax,
CClock, CTime, CUSeconds, CSUSeconds, CFloat, CDouble, '(->)',
IO, Maybe, '()', '[]', Ordering, Any, All, Last, First, Sum,
Product, Endo, Dual, and tuples.
A class for types with a default value.
Methods
The default value for this type.
def :: (Generic a, GDefault (Rep a)) => a #
The default value for this type.
Instances
| Default Double # | |
| Default Float # | |
| Default Int # | |
| Default Int8 # | |
| Default Int16 # | |
| Default Int32 # | |
| Default Int64 # | |
| Default Integer # | |
| Default Ordering # | |
| Default Word # | |
| Default Word8 # | |
| Default Word16 # | |
| Default Word32 # | |
| Default Word64 # | |
| Default () # | |
| Default Any # | |
| Default All # | |
| Default CUShort # | |
| Default CUSeconds # | |
| Default CULong # | |
| Default CULLong # | |
| Default CUIntPtr # | |
| Default CUIntMax # | |
| Default CUInt # | |
| Default CTime # | |
| Default CSize # | |
| Default CSigAtomic # | |
| Default CShort # | |
| Default CSUSeconds # | |
| Default CPtrdiff # | |
| Default CLong # | |
| Default CLLong # | |
| Default CIntPtr # | |
| Default CIntMax # | |
| Default CInt # | |
| Default CFloat # | |
| Default CDouble # | |
| Default CClock # | |
| Default [a] # | |
| Default (Maybe a) # | |
| Integral a => Default (Ratio a) # | |
| Default a => Default (IO a) # | |
| Num a => Default (Sum a) # | |
| Num a => Default (Product a) # | |
| Default (Last a) # | |
| Default (First a) # | |
| Default (Endo a) # | |
| Default a => Default (Dual a) # | |
| (Default a, RealFloat a) => Default (Complex a) # | |
| Default r => Default (e -> r) # | |
| (Default a, Default b) => Default (a, b) # | |
| (Default a, Default b, Default c) => Default (a, b, c) # | |
| (Default a, Default b, Default c, Default d) => Default (a, b, c, d) # | |
| (Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) # | |
| (Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) # | |
| (Default a, Default b, Default c, Default d, Default e, Default f, Default g) => Default (a, b, c, d, e, f, g) # | |