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 |
Documentation
Following Default
instances are provided:
instanceDefault
a =>Default
(Const
a b) wheredef
=Const
def
instanceMonad
m =>Default
(Kleisli
m a b) wheredef
=Kleisli
return
instanceDefault
Version
wheredef
=Version
[] []
Following instances are available only for base >= 4.7.0.0:
instanceDefault
(Proxy
a) wheredef
=Proxy
instanceDefault
SomeNat
wheredef
=SomeNat
(Proxy
::Proxy
0) instanceDefault
SomeSymbol
wheredef
=SomeSymbol
(Proxy
::Proxy
"")
Following instances are available only for base >= 4.8.0.0:
instanceAlternative
f =>Default
(Alt
f a) wheredef
=Alt
empty
instanceDefault
a =>Default
(Identity
a) wheredef
=Identity
def
instanceDefault
Natural
wheredef
= 0
Following instances are available only for base >= 4.9.0.0:
instanceDefault
a =>Default
(NonEmpty
a) wheredef
=def
:|
[] instanceBounded
a =>Default
(Min
a) wheredef
=minBound
instanceBounded
a =>Default
(Max
a) wheredef
= maxBound instanceDefault
(Option
a) wheredef
=Option
Nothing
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 # |
|