compdata-param-0.8.0.2: Parametric Compositional Data Types

Copyright(c) 2011 Patrick Bahr, Tom Hvitved
LicenseBSD3
MaintainerTom Hvitved <hvitved@diku.dk>
Stabilityexperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell98

Data.Comp.Param.Multi.Show

Description

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

Synopsis

Documentation

class ShowHD f where Source

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

Methods

showHD :: f Name (K (FreshM String)) i -> FreshM String Source

Instances

(ShowHD f, Show p) => ShowHD ((:&:) f p) 
(ShowHD f, ShowHD g) => ShowHD ((:+:) f g) 
(HDifunctor f, ShowHD f) => ShowHD (Cxt h f)

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