data-default-class-0.1.2.0: A class for types with a default value
Safe HaskellSafe-Inferred
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.

Minimal complete definition

Nothing

Methods

def :: a Source #

The default value for this type.

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

Instances

Instances details
Default All Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: All Source #

Default Any Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Any Source #

Default CClock Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CClock Source #

Default CDouble Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CDouble Source #

Default CFloat Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CFloat Source #

Default CInt Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CInt Source #

Default CIntMax Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CIntMax Source #

Default CIntPtr Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CIntPtr Source #

Default CLLong Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CLLong Source #

Default CLong Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CLong Source #

Default CPtrdiff Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CPtrdiff Source #

Default CSUSeconds Source # 
Instance details

Defined in Data.Default.Class

Default CShort Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CShort Source #

Default CSigAtomic Source # 
Instance details

Defined in Data.Default.Class

Default CSize Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CSize Source #

Default CTime Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CTime Source #

Default CUInt Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CUInt Source #

Default CUIntMax Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CUIntMax Source #

Default CUIntPtr Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CUIntPtr Source #

Default CULLong Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CULLong Source #

Default CULong Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CULong Source #

Default CUSeconds Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CUSeconds Source #

Default CUShort Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: CUShort Source #

Default Int16 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Int16 Source #

Default Int32 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Int32 Source #

Default Int64 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Int64 Source #

Default Int8 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Int8 Source #

Default Word16 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Word16 Source #

Default Word32 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Word32 Source #

Default Word64 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Word64 Source #

Default Word8 Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Word8 Source #

Default Ordering Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Ordering Source #

Default Integer Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Integer Source #

Default () Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: () Source #

Default Double Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Double Source #

Default Float Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Float Source #

Default Int Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Int Source #

Default Word Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Word Source #

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

Defined in Data.Default.Class

Methods

def :: Complex a Source #

Default (First a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: First a Source #

Default (Last a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Last a Source #

Default a => Default (Dual a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Dual a Source #

Default (Endo a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Endo a Source #

Num a => Default (Product a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Product a Source #

Num a => Default (Sum a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Sum a Source #

Integral a => Default (Ratio a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Ratio a Source #

Default a => Default (IO a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: IO a Source #

Default (Maybe a) Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: Maybe a Source #

Default [a] Source # 
Instance details

Defined in Data.Default.Class

Methods

def :: [a] Source #

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

Defined in Data.Default.Class

Methods

def :: (a, b) Source #

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

Defined in Data.Default.Class

Methods

def :: e -> r Source #

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

Defined in Data.Default.Class

Methods

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

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

Defined in Data.Default.Class

Methods

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

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

Defined in Data.Default.Class

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 # 
Instance details

Defined in Data.Default.Class

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 # 
Instance details

Defined in Data.Default.Class

Methods

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