Data.Default

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

Safe Haskell | None
Language | Haskell98

Data.Default

Synopsis

- class Default a where

# Documentation

This module defines a class for types with a default value. Instances are provided for '()', `Set`, `Map`, `Int`, `Integer`, `Float`, `Double`, and many others (see below).

class Default a where #

A class for types with a default value.

Minimal complete definition

def

Methods

def :: a #

The default value for this type.

Instances

Default Double # |
Methods def :: Double #
Default Float # |
Methods def :: Float #
Default Int # |
Methods def :: Int #
Default Int8 # |
Methods def :: Int8 #
Default Int16 # |
Methods def :: Int16 #
Default Int32 # |
Methods def :: Int32 #
Default Int64 # |
Methods def :: Int64 #
Default Integer # |
Methods def :: Integer #
Default Ordering # |
Methods def :: Ordering #
Default Word # |
Methods def :: Word #
Default Word8 # |
Methods def :: Word8 #
Default Word16 # |
Methods def :: Word16 #
Default Word32 # |
Methods def :: Word32 #
Default Word64 # |
Methods def :: Word64 #
Default () # |
Methods def :: () #
Default All # |
Methods def :: All #
Default Any # |
Methods def :: Any #
Default IntSet # |
Methods def :: IntSet #
Default TimeLocale # |
Methods def :: TimeLocale #
Default [a] # |
Methods def :: [a] #
Default (Maybe a) # |
Methods def :: Maybe a #
Integral a => Default (Ratio a) # |
Methods def :: Ratio a #
Default a => Default (IO a) # |
Methods def :: IO a #
(Default a, RealFloat a) => Default (Complex a) # |
Methods def :: Complex a #
Default a => Default (Dual a) # |
Methods def :: Dual a #
Default (Endo a) # |
Methods def :: Endo a #
Num a => Default (Sum a) # |
Methods def :: Sum a #
Num a => Default (Product a) # |
Methods def :: Product a #
Default (First a) # |
Methods def :: First a #
Default (Last a) # |
Methods def :: Last a #
Default (IntMap v) # |
Methods def :: IntMap v #
Default a => Default (Tree a) # |
Methods def :: Tree a #
Default (Seq a) # |
Methods def :: Seq a #
Default (Set v) # |
Methods def :: Set v #
Default (DList a) # |
Methods def :: DList a #
Default r => Default (e -> r) # |
Methods def :: e -> r #
(Default a, Default b) => Default (a, b) # |
Methods def :: (a, b) #
Default (Map k v) # |
Methods def :: Map k v #
(Default a, Default b, Default c) => Default (a, b, c) # |
Methods def :: (a, b, c) #
(Default a, Default b, Default c, Default d) => Default (a, b, c, d) # |
Methods def :: (a, b, c, d) #
(Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) # |
Methods def :: (a, b, c, d, e) #
(Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) # |
Methods def :: (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) # |
Methods def :: (a, b, c, d, e, f, g) #