Data.Default

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

Safe Haskell | Safe
Language | Haskell98

Data.Default

Synopsis

- class Default a where
  - def :: a

# 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.

Methods

def :: a #

The default value for this type.

Instances

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