compdata-0.3: Compositional Data Types

Portabilitynon-portable (GHC Extensions)
Stabilityexperimental
MaintainerTom Hvitved <hvitved@diku.dk>

Data.Comp.MultiParam.Show

Description

This module defines showing of signatures, which lifts to showing of terms.

Synopsis

Documentation

class PShow a whereSource

Printing of parametric values.

Methods

pshow :: a i -> FreshM StringSource

Instances

PShow Var 
Show a => PShow (K a) 
(ShowHD f, PShow a) => PShow (Cxt h f Var a)

From an ShowHD higher-order difunctor an ShowHD instance of the corresponding term type can be derived.

class ShowHD f whereSource

Signature printing. An instance ShowHD f gives rise to an instance Show (Term f i).

Methods

showHD :: PShow a => f Var a i -> FreshM StringSource

Instances

(ShowHD f, PShow (K p)) => ShowHD (:&: f p) 
(ShowHD f, ShowHD g) => ShowHD (:+: f g)