Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Generic implementation of Show
Warning
This is an internal module: it is not subject to any versioning policy, breaking changes can happen at any time.
If something here seems useful, please report it or create a pull request to export it from an external module.
Synopsis
- gshowsPrec :: (Generic a, GShow0 (Rep a)) => Int -> a -> ShowS
- gprecShows :: (Generic a, GShow0 (Rep a)) => a -> PrecShowS
- type GShow0 = GShow Proxy
- gliftShowsPrec :: (Generic1 f, GShow1 (Rep1 f)) => (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> f a -> ShowS
- gLiftPrecShows :: GShow1 f => (Int -> a -> ShowS) -> ([a] -> ShowS) -> f a -> PrecShowS
- type ShowsPrec a = (Int -> a -> ShowS, [a] -> ShowS)
- type GShow1 = GShow Identity
- class GShow p f where
- gPrecShows :: p (ShowsPrec a) -> f a -> PrecShowS
- class GShowC p c f where
- class GShowFields p f where
- gPrecShowsFields :: p (ShowsPrec a) -> f a -> [PrecShowS]
- class GShowNamed p f where
- gPrecShowsNamed :: p (ShowsPrec a) -> f a -> ShowFields
- class GShowSingle p f where
- gPrecShowsSingle :: p (ShowsPrec a) -> f a -> PrecShowS
Documentation
gshowsPrec :: (Generic a, GShow0 (Rep a)) => Int -> a -> ShowS Source #
Generic showsPrec
.
instanceShow
MyType whereshowsPrec
=gshowsPrec
gliftShowsPrec :: (Generic1 f, GShow1 (Rep1 f)) => (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> f a -> ShowS Source #
Generic liftShowsPrec
.
class GShow p f where Source #
gPrecShows :: p (ShowsPrec a) -> f a -> PrecShowS Source #
Instances
GShow p (V1 :: Type -> Type) Source # | |
Defined in Generic.Data.Internal.Show | |
(GShow p f, GShow p g) => GShow p (f :+: g) Source # | |
Defined in Generic.Data.Internal.Show | |
(Constructor c, GShowC p c f) => GShow p (M1 C c f) Source # | |
Defined in Generic.Data.Internal.Show | |
GShow p f => GShow p (M1 D d f) Source # | |
Defined in Generic.Data.Internal.Show |
class GShowFields p f where Source #
gPrecShowsFields :: p (ShowsPrec a) -> f a -> [PrecShowS] Source #
Instances
GShowFields p (U1 :: Type -> Type) Source # | |
Defined in Generic.Data.Internal.Show | |
(GShowFields p f, GShowFields p g) => GShowFields p (f :*: g) Source # | |
Defined in Generic.Data.Internal.Show | |
GShowSingle p f => GShowFields p (M1 S c f) Source # | |
Defined in Generic.Data.Internal.Show |
class GShowNamed p f where Source #
gPrecShowsNamed :: p (ShowsPrec a) -> f a -> ShowFields Source #
Instances
GShowNamed p (U1 :: Type -> Type) Source # | |
Defined in Generic.Data.Internal.Show gPrecShowsNamed :: p (ShowsPrec a) -> U1 a -> ShowFields Source # | |
(GShowNamed p f, GShowNamed p g) => GShowNamed p (f :*: g) Source # | |
Defined in Generic.Data.Internal.Show gPrecShowsNamed :: p (ShowsPrec a) -> (f :*: g) a -> ShowFields Source # | |
(Selector c, GShowSingle p f) => GShowNamed p (M1 S c f) Source # | |
Defined in Generic.Data.Internal.Show gPrecShowsNamed :: p (ShowsPrec a) -> M1 S c f a -> ShowFields Source # |
class GShowSingle p f where Source #
gPrecShowsSingle :: p (ShowsPrec a) -> f a -> PrecShowS Source #
Instances
GShowSingle Identity Par1 Source # | |
Defined in Generic.Data.Internal.Show | |
Show1 f => GShowSingle Identity (Rec1 f) Source # | |
Defined in Generic.Data.Internal.Show | |
Show a => GShowSingle p (K1 i a :: Type -> Type) Source # | |
Defined in Generic.Data.Internal.Show | |
(Show1 f, GShowSingle p g) => GShowSingle p (f :.: g) Source # | |
Defined in Generic.Data.Internal.Show |