ajhc-0.8.0.7: Haskell compiler that produce binary through C language

Safe HaskellNone

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 Source

Instances

class DocLike d => PPrint d a whereSource

Methods

pprint :: a -> dSource

pprintAssoc :: Assoc -> Int -> a -> dSource

pplist :: [a] -> dSource

Instances

pprintParen :: PPrint d a => a -> dSource

pprintPrec :: PPrint d a => Int -> a -> dSource

checkAssoc :: (Ord a1, DocLike a) => Assoc -> a1 -> Assoc -> a1 -> a -> aSource

checkAssocApp :: (Num a1, Ord a1, DocLike a) => Assoc -> a1 -> a -> aSource

pprintBinary :: (PPrint a a1, PPrint a a2) => Assoc -> Int -> Assoc -> Int -> a1 -> a -> a2 -> aSource