data-default-class-0.1.2.0: A class for types with a default value

Safe HaskellSafe
LanguageHaskell98

Data.Default.Class

Synopsis

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.

class Default a where Source #

A class for types with a default value.

Methods

def :: a Source #

The default value for this type.

def :: (Generic a, GDefault (Rep a)) => a Source #

The default value for this type.

Instances

Default Double Source # 

Methods

def :: Double Source #

Default Float Source # 

Methods

def :: Float Source #

Default Int Source # 

Methods

def :: Int Source #

Default Int8 Source # 

Methods

def :: Int8 Source #

Default Int16 Source # 

Methods

def :: Int16 Source #

Default Int32 Source # 

Methods

def :: Int32 Source #

Default Int64 Source # 

Methods

def :: Int64 Source #

Default Integer Source # 

Methods

def :: Integer Source #

Default Ordering Source # 

Methods

def :: Ordering Source #

Default Word Source # 

Methods

def :: Word Source #

Default Word8 Source # 

Methods

def :: Word8 Source #

Default Word16 Source # 

Methods

def :: Word16 Source #

Default Word32 Source # 

Methods

def :: Word32 Source #

Default Word64 Source # 

Methods

def :: Word64 Source #

Default () Source # 

Methods

def :: () Source #

Default CShort Source # 

Methods

def :: CShort Source #

Default CUShort Source # 

Methods

def :: CUShort Source #

Default CInt Source # 

Methods

def :: CInt Source #

Default CUInt Source # 

Methods

def :: CUInt Source #

Default CLong Source # 

Methods

def :: CLong Source #

Default CULong Source # 

Methods

def :: CULong Source #

Default CLLong Source # 

Methods

def :: CLLong Source #

Default CULLong Source # 

Methods

def :: CULLong Source #

Default CFloat Source # 

Methods

def :: CFloat Source #

Default CDouble Source # 

Methods

def :: CDouble Source #

Default CPtrdiff Source # 

Methods

def :: CPtrdiff Source #

Default CSize Source # 

Methods

def :: CSize Source #

Default CSigAtomic Source # 
Default CClock Source # 

Methods

def :: CClock Source #

Default CTime Source # 

Methods

def :: CTime Source #

Default CUSeconds Source # 

Methods

def :: CUSeconds Source #

Default CSUSeconds Source # 
Default CIntPtr Source # 

Methods

def :: CIntPtr Source #

Default CUIntPtr Source # 

Methods

def :: CUIntPtr Source #

Default CIntMax Source # 

Methods

def :: CIntMax Source #

Default CUIntMax Source # 

Methods

def :: CUIntMax Source #

Default All Source # 

Methods

def :: All Source #

Default Any Source # 

Methods

def :: Any Source #

Default [a] Source # 

Methods

def :: [a] Source #

Default (Maybe a) Source # 

Methods

def :: Maybe a Source #

Integral a => Default (Ratio a) Source # 

Methods

def :: Ratio a Source #

Default a => Default (IO a) Source # 

Methods

def :: IO a Source #

(Default a, RealFloat a) => Default (Complex a) Source # 

Methods

def :: Complex a Source #

Default a => Default (Dual a) Source # 

Methods

def :: Dual a Source #

Default (Endo a) Source # 

Methods

def :: Endo a Source #

Num a => Default (Sum a) Source # 

Methods

def :: Sum a Source #

Num a => Default (Product a) Source # 

Methods

def :: Product a Source #

Default (First a) Source # 

Methods

def :: First a Source #

Default (Last a) Source # 

Methods

def :: Last a Source #

Default r => Default (e -> r) Source # 

Methods

def :: e -> r Source #

(Default a, Default b) => Default (a, b) Source # 

Methods

def :: (a, b) Source #

(Default a, Default b, Default c) => Default (a, b, c) Source # 

Methods

def :: (a, b, c) Source #

(Default a, Default b, Default c, Default d) => Default (a, b, c, d) Source # 

Methods

def :: (a, b, c, d) Source #

(Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) Source # 

Methods

def :: (a, b, c, d, e) Source #

(Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) Source # 

Methods

def :: (a, b, c, d, e, f) Source #

(Default a, Default b, Default c, Default d, Default e, Default f, Default g) => Default (a, b, c, d, e, f, g) Source # 

Methods

def :: (a, b, c, d, e, f, g) Source #