Show-like class for 1-type-parameter GADTs. GShow t => ... is equivalent to something
like (forall a. Show (t a)) => .... The easiest way to create instances would probably be
to write (or derive) an instance Show (T a), and then simply say:
instance GShow t where gshowsPrec = defaultGshowsPrecMethods
gshowsPrec :: Int -> t a -> ShowS
Instances11GShow, …
GShow SCharDefined in some-1.0.6 · Data.GADT.InternalGShow SSymbolDefined in some-1.0.6 · Data.GADT.InternalGShow SNatDefined in some-1.0.6 · Data.GADT.InternalGShow TypeRepDefined in some-1.0.6 · Data.GADT.InternalGShow (GOrdering a)Defined in some-1.0.6 · Data.GADT.InternalGShow ((:~:) a)Defined in some-1.0.6 · Data.GADT.InternalGShow ((:~~:) a)Defined in some-1.0.6 · Data.GADT.Internal(GShow a, GShow b) => GShow (Product a b)Defined in some-1.0.6 · Data.GADT.InternalExample1 expression gshow (Pair Refl Refl :: Product ((:~:) Int) ((:~:) Int) Int)"Pair Refl Refl"
(GShow a, GShow b) => GShow (Sum a b)Defined in some-1.0.6 · Data.GADT.InternalExample1 expression gshow (InL Refl :: Sum ((:~:) Int) ((:~:) Bool) Int)"InL Refl"
(GShow a, GShow b) => GShow (a :*: b)Defined in some-1.0.6 · Data.GADT.InternalExample1 expression gshow (Pair Refl Refl :: Product ((:~:) Int) ((:~:) Int) Int)"Refl :*: Refl"
(GShow a, GShow b) => GShow (a :+: b)Defined in some-1.0.6 · Data.GADT.InternalExample1 expression gshow (L1 Refl :: ((:~:) Int :+: (:~:) Bool) Int)"L1 Refl"