| Copyright | (c) 2008--2010 Universiteit Utrecht |
|---|---|
| License | BSD3 |
| Maintainer | generics@haskell.org |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Generics.MultiRec.Show
Contents
Description
Generic show.
Synopsis
- class HFunctor phi f => HShow phi f where
- hShowsPrecAlg :: Algebra' phi f [Int -> ShowS]
- class Show1 f where
- showsPrec :: (Fam phi, HShow phi (PF phi)) => phi ix -> Int -> ix -> ShowS
- show :: (Fam phi, HShow phi (PF phi)) => phi ix -> ix -> String
- spaces :: [ShowS] -> ShowS
- commas :: [ShowS] -> ShowS
- intersperse :: String -> [ShowS] -> ShowS
Generic show
class HFunctor phi f => HShow phi f where Source #
The list in the result type allows us to get at the fields of a constructor individually, which in turn allows us to insert additional stuff in between if record notation is used.
Instances
| HShow phi U Source # | |
Defined in Generics.MultiRec.Show | |
| Show a => HShow phi (K a) Source # | For constant types, we make use of the standard show function. |
Defined in Generics.MultiRec.Show | |
| El phi xi => HShow phi (I xi) Source # | |
Defined in Generics.MultiRec.Show | |
| (Constructor c, HShow phi f) => HShow phi (C c f) Source # | |
Defined in Generics.MultiRec.Show | |
| (Show1 f, Traversable f, HShow phi g) => HShow phi (f :.: g) Source # | |
Defined in Generics.MultiRec.Show | |
| HShow phi f => HShow phi (f :>: ix) Source # | |
Defined in Generics.MultiRec.Show | |
| (HShow phi f, HShow phi g) => HShow phi (f :*: g) Source # | |
Defined in Generics.MultiRec.Show | |
| (HShow phi f, HShow phi g) => HShow phi (f :+: g) Source # | |
Defined in Generics.MultiRec.Show | |