typelevel-1.2.2: Useful type level operations (type families and related operators).

Safe HaskellNone
LanguageHaskell2010

Type.Show_old

Documentation

class TypeShow a where Source #

Instances

KnownNat n => TypeShow Nat n Source # 

Methods

showType :: Proxy n a -> String Source #

ListElemsShow [k] a => TypeShow [k] a Source # 

Methods

showType :: Proxy a a -> String Source #

(TypeShow k2 a, TypeShow k1 b) => TypeShow (k2, k1) ((,) k2 k1 a b) Source # 

Methods

showType :: Proxy ((k2, k1) a b) a -> String Source #

showType' :: forall t. TypeShow t => String Source #

printType :: TypeShow a => Proxy a -> IO () Source #

class ListElemsShow a where Source #

Minimal complete definition

showListElems

Instances

ListElemsShow [k] ([] k) Source # 

Methods

showListElems :: Proxy [k] a -> String Source #

(TypeShow a1 a2, ListElemsShow [a1] as) => ListElemsShow [a1] ((:) a1 a2 as) Source # 

Methods

showListElems :: Proxy ((a1 ': a2) as) a -> String Source #

TypeShow k a => ListElemsShow [k] ((:) k a ([] k)) Source # 

Methods

showListElems :: Proxy ((k ': a) [k]) a -> String Source #