multirec-0.5.1: Generic programming for families of recursive datatypes

Portabilitynon-portable
Stabilityexperimental
Maintainergenerics@haskell.org

Generics.MultiRec.Show

Contents

Description

Generic show.

Synopsis

Generic show

class HFunctor phi f => HShow phi f whereSource

Methods

hShowsPrecAlg :: Algebra' phi f [Int -> ShowS]Source

Instances

HShow phi U 
Show a => HShow phi (K a)

For constant types, we make use of the standard show function.

El phi xi => HShow phi (I xi) 
(Constructor c, HShow phi f) => HShow phi (C c f) 
HShow phi f => HShow phi (:>: f ix) 
(HShow phi f, HShow phi g) => HShow phi (:*: f g) 
(HShow phi f, HShow phi g) => HShow phi (:+: f g) 

showsPrec :: (Fam phi, HShow phi (PF phi)) => phi ix -> Int -> ix -> ShowSSource

show :: (Fam phi, HShow phi (PF phi)) => phi ix -> ix -> StringSource

Utilities