| Copyright | (c) 2015-2016, Peter Trško |
|---|---|
| License | BSD3 |
| Maintainer | peter.trsko@gmail.com |
| Stability | stable |
| Portability | CPP, DataKinds (for base >=4.7.0.0), FlexibleInstances, NoImplicitPrelude |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Default.Instances.Base.New
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) instanceDefaultSomeNatwheredef=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.