Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Wrapped.Default
Contents
Description
Provides instance Default (Wrapped Generic a)
for use with DerivingVia
.
Documentation
class GDefault f where Source #
Generic instances for Default.
Exported just to give Haddock something to link to; use Wrapped Generic
with -XDerivingVia
instead.
Instances
GDefault (U1 :: Type -> Type) Source # | |
Defined in Data.Wrapped.Default | |
Default a => GDefault (K1 i a :: Type -> Type) Source # | |
Defined in Data.Wrapped.Default | |
GDefault f => GDefault (f :+: g) Source # | |
Defined in Data.Wrapped.Default | |
(GDefault f, GDefault g) => GDefault (f :*: g) Source # | |
Defined in Data.Wrapped.Default | |
GDefault f => GDefault (M1 i m f) Source # | |
Defined in Data.Wrapped.Default |
Orphan instances
(Generic a, GDefault (Rep a)) => Default (Wrapped Generic a) Source # | The first constructor with all fields set to Given the data type definition: data Foo = Foo Int Bool | Bar Double deriving Generic deriving Default via Wrapped Generic Foo then
|