| Copyright | (c) 2015-2017 Peter Trško |
|---|---|
| License | BSD3 |
| Maintainer | peter.trsko@gmail.com |
| Stability | stable |
| Portability | GHC specific language extensions. |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Default.Instances.Base.New
Contents
Documentation
Following Default instances are provided:
instanceDefaulta =>Default(Consta b) wheredef=ConstdefinstanceMonadm =>Default(Kleislim a b) wheredef=KleislireturninstanceDefaultVersionwheredef=Version[] []
Following instances are available only for base >= 4.7.0.0:
instanceDefault(Proxya) wheredef=ProxyinstanceDefaultSomeNatwheredef=SomeNat(Proxy::Proxy0) instanceDefaultSomeSymbolwheredef=SomeSymbol(Proxy::Proxy"")
Following instances are available only for base >= 4.8.0.0:
instanceAlternativef =>Default(Altf a) wheredef=AltemptyinstanceDefaulta =>Default(Identitya) wheredef=IdentitydefinstanceDefaultNaturalwheredef= 0
Following instances are available only for base >= 4.9.0.0:
instanceDefaulta =>Default(NonEmptya) wheredef=def:|[] instanceBoundeda =>Default(Mina) wheredef=minBoundinstanceBoundeda =>Default(Maxa) wheredef= maxBound instanceDefault(Optiona) wheredef=OptionNothing
This module also reexporting instances from Data.Default.Instances.Base.
Orphan instances
| Default Natural Source # | |
| Default Version Source # |
|
| Default SomeNat Source # |
|
| Default SomeSymbol Source # |
|
| Default a => Default (Identity a) Source # |
|
| Bounded a => Default (Min a) Source # |
|
| Bounded a => Default (Max a) Source # |
|
| Default (Option a) Source # |
|
| Default a => Default (NonEmpty a) Source # |
|
| Default (Proxy * a) Source # |
|
| Monad m => Default (Kleisli m a a) Source # |
|
| Default a => Default (Const * a b) Source # |
|
| Alternative f => Default (Alt * f a) Source # |
|