Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder and Uni Bremen 2006
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred

CASL.ToDoc

Description

Pretty printing data types of BASIC_SPEC

Synopsis

Documentation

printBASIC_SPEC :: FormExtension f => (b -> Doc) -> (s -> Doc) -> BASIC_SPEC b s f -> Doc

printTheoryFormula :: FormExtension f => Named (FORMULA f) -> Doc

print a formula as a sentence

pluralS :: ListCheck a => a -> String

pluralS checks nested lists via the class ListCheck to decide if a plural s should be appended.

appendS :: [a] -> String

printInfix

Arguments

:: Bool

attach separator to right argument?

-> ([Doc] -> Doc)

combinator for two docs

-> Doc 
-> Doc 
-> Doc

left, separator and right arguments

-> Doc 

class ListCheck a where

a helper class for calculating the pluralS of e.g. ops

Methods

innerList :: a -> [()]