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

Safe Haskell | Safe-Inferred
Language | Haskell98

Data.Default.Internal

Description

Nothing to see here.

Synopsis

- class Default a where
  - def :: a
- class GDefault (f :: Type -> Type) where
  - gdef :: f a

# Documentation

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 IntSet Source # |
Instance details Defined in Data.Default.Internal Methods def :: IntSet Source #
Default All Source # |
Instance details Defined in Data.Default.Internal Methods def :: All Source #
Default Any Source # |
Instance details Defined in Data.Default.Internal Methods def :: Any Source #
Default CBool Source # |
Instance details Defined in Data.Default.Internal Methods def :: CBool Source #
Default CClock Source # |
Instance details Defined in Data.Default.Internal Methods def :: CClock Source #
Default CDouble Source # |
Instance details Defined in Data.Default.Internal Methods def :: CDouble Source #
Default CFloat Source # |
Instance details Defined in Data.Default.Internal Methods def :: CFloat Source #
Default CInt Source # |
Instance details Defined in Data.Default.Internal Methods def :: CInt Source #
Default CIntMax Source # |
Instance details Defined in Data.Default.Internal Methods def :: CIntMax Source #
Default CIntPtr Source # |
Instance details Defined in Data.Default.Internal Methods def :: CIntPtr Source #
Default CLLong Source # |
Instance details Defined in Data.Default.Internal Methods def :: CLLong Source #
Default CLong Source # |
Instance details Defined in Data.Default.Internal Methods def :: CLong Source #
Default CPtrdiff Source # |
Instance details Defined in Data.Default.Internal Methods def :: CPtrdiff Source #
Default CSUSeconds Source # |
Instance details Defined in Data.Default.Internal Methods def :: CSUSeconds Source #
Default CShort Source # |
Instance details Defined in Data.Default.Internal Methods def :: CShort Source #
Default CSigAtomic Source # |
Instance details Defined in Data.Default.Internal Methods def :: CSigAtomic Source #
Default CSize Source # |
Instance details Defined in Data.Default.Internal Methods def :: CSize Source #
Default CTime Source # |
Instance details Defined in Data.Default.Internal Methods def :: CTime Source #
Default CUInt Source # |
Instance details Defined in Data.Default.Internal Methods def :: CUInt Source #
Default CUIntMax Source # |
Instance details Defined in Data.Default.Internal Methods def :: CUIntMax Source #
Default CUIntPtr Source # |
Instance details Defined in Data.Default.Internal Methods def :: CUIntPtr Source #
Default CULLong Source # |
Instance details Defined in Data.Default.Internal Methods def :: CULLong Source #
Default CULong Source # |
Instance details Defined in Data.Default.Internal Methods def :: CULong Source #
Default CUSeconds Source # |
Instance details Defined in Data.Default.Internal Methods def :: CUSeconds Source #
Default CUShort Source # |
Instance details Defined in Data.Default.Internal Methods def :: CUShort Source #
Default IntPtr Source # |
Instance details Defined in Data.Default.Internal Methods def :: IntPtr Source #
Default WordPtr Source # |
Instance details Defined in Data.Default.Internal Methods def :: WordPtr Source #
Default Int16 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Int16 Source #
Default Int32 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Int32 Source #
Default Int64 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Int64 Source #
Default Int8 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Int8 Source #
Default Word16 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Word16 Source #
Default Word32 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Word32 Source #
Default Word64 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Word64 Source #
Default Word8 Source # |
Instance details Defined in Data.Default.Internal Methods def :: Word8 Source #
Default Ordering Source # |
Instance details Defined in Data.Default.Internal Methods def :: Ordering Source #
Default Integer Source # |
Instance details Defined in Data.Default.Internal Methods def :: Integer Source #
Default () Source # |
Instance details Defined in Data.Default.Internal Methods def :: () Source #
Default Bool Source # |
Instance details Defined in Data.Default.Internal Methods def :: Bool Source #
Default Double Source # |
Instance details Defined in Data.Default.Internal Methods def :: Double Source #
Default Float Source # |
Instance details Defined in Data.Default.Internal Methods def :: Float Source #
Default Int Source # |
Instance details Defined in Data.Default.Internal Methods def :: Int Source #
Default Word Source # |
Instance details Defined in Data.Default.Internal Methods def :: Word Source #
(Default a, RealFloat a) => Default (Complex a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Complex a Source #
Default (IntMap v) Source # |
Instance details Defined in Data.Default.Internal Methods def :: IntMap v Source #
Default (Seq a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Seq a Source #
Default (Set v) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Set v Source #
Default a => Default (Tree a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Tree a Source #
Default a => Default (Identity a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Identity a Source #
Default (First a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: First a Source #
Default (Last a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Last a Source #
Default a => Default (Dual a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Dual a Source #
Default (Endo a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Endo a Source #
Num a => Default (Product a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Product a Source #
Num a => Default (Sum a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Sum a Source #
Default (ConstPtr a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: ConstPtr a Source #
Default (FunPtr a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: FunPtr a Source #
Default (Ptr a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Ptr a Source #
Integral a => Default (Ratio a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Ratio a Source #
Default (Maybe a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Maybe a Source #
Default a => Default (Solo a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Solo a Source #
Default [a] Source # |
Instance details Defined in Data.Default.Internal Methods def :: [a] Source #
HasResolution a => Default (Fixed a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Fixed a Source #
Default (Map k v) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Map k v Source #
Default (Proxy a) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Proxy a Source #
(Default a1, Default a2) => Default (a1, a2) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2) Source #
Default a => Default (Const a b) Source # |
Instance details Defined in Data.Default.Internal Methods def :: Const a b Source #
(Default a1, Default a2, Default a3) => Default (a1, a2, a3) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3) Source #
(Default a1, Default a2, Default a3, Default a4) => Default (a1, a2, a3, a4) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5) => Default (a1, a2, a3, a4, a5) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6) => Default (a1, a2, a3, a4, a5, a6) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7) => Default (a1, a2, a3, a4, a5, a6, a7) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8) => Default (a1, a2, a3, a4, a5, a6, a7, a8) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) Source #
(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21) Source # |
Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26, Default a27) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26, Default a27, Default a28) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26, Default a27, Default a28, Default a29) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26, Default a27, Default a28, Default a29, Default a30) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30) Source #

(Default a1, Default a2, Default a3, Default a4, Default a5, Default a6, Default a7, Default a8, Default a9, Default a10, Default a11, Default a12, Default a13, Default a14, Default a15, Default a16, Default a17, Default a18, Default a19, Default a20, Default a21, Default a22, Default a23, Default a24, Default a25, Default a26, Default a27, Default a28, Default a29, Default a30, Default a31) => Default (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31) Source #

Instance details Defined in Data.Default.Internal Methods def :: (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31) Source #

class GDefault (f :: Type -> Type) where Source #

Defaults, generically.

Methods

gdef :: f a Source #

#### Instances

Instances details

GDefault (U1 :: Type -> Type) Source # | A nullary constructor is its own default.
Instance details Defined in Data.Default.Internal Methods gdef :: U1 a Source #
(GDefault a, GDefault b) => GDefault (a :*: b) Source # | Default of products = product of defaults.
Instance details Defined in Data.Default.Internal Methods gdef :: (a :*: b) a0 Source #
GDefault a => GDefault (a :+: b) Source # | For sums, we arbitrarily choose the left side.
Instance details Defined in Data.Default.Internal Methods gdef :: (a :+: b) a0 Source #
Default a => GDefault (K1 i a :: Type -> Type) Source # | A unary constructor wraps the default value of the argument type.
Instance details Defined in Data.Default.Internal Methods gdef :: K1 i a a0 Source #
GDefault a => GDefault (M1 i c a) Source # | Default of wrapper = wrapper of default.
Instance details Defined in Data.Default.Internal Methods gdef :: M1 i c a a0 Source #