ContentsIndex
Doc.PPrint
Description

A Pretty printing class using multiparameter type classes for maximal generality with some useful instances.

the pprinted type comes as the last argument so newtype deriving can be used in more places.

Documentation
data Assoc
Constructors
AssocLeft
AssocRight
AssocNone
show/hide Instances
Eq Assoc
Ord Assoc
Show Assoc
class DocLike d => PPrint d a where
Methods
pprint :: a -> d
pprintAssoc :: Assoc -> Int -> a -> d
pplist :: [a] -> d
show/hide Instances
DocLike d => PPrint d Char
DocLike d => PPrint d Double
DocLike d => PPrint d Float
DocLike d => PPrint d Int
DocLike d => PPrint d Integer
DocLike d => PPrint d ()
(PPrint d a, PPrint d b) => PPrint d (a, b)
(PPrint d a, PPrint d b, PPrint d c) => PPrint d (a, b, c)
PPrint d a => PPrint d [a]
(PPrint d a, PPrint d b) => PPrint d (Either a b)
(PPrint d a, PPrint d b) => PPrint d (Map a b)
pprintParen :: PPrint d a => a -> d
Produced by Haddock version 0.8