lambda-calculator-0.5.0: A lambda calculus interpreter

Safe HaskellSafe
LanguageHaskell2010

Language.Lambda.PrettyPrint

Documentation

class PrettyPrint a where Source #

Minimal complete definition

prettyPrint

Methods

prettyPrint :: a -> String Source #

newtype PDoc s Source #

Constructors

PDoc [s] 

Instances

Functor PDoc Source # 

Methods

fmap :: (a -> b) -> PDoc a -> PDoc b #

(<$) :: a -> PDoc b -> PDoc a #

Eq s => Eq (PDoc s) Source # 

Methods

(==) :: PDoc s -> PDoc s -> Bool #

(/=) :: PDoc s -> PDoc s -> Bool #

Show s => Show (PDoc s) Source # 

Methods

showsPrec :: Int -> PDoc s -> ShowS #

show :: PDoc s -> String #

showList :: [PDoc s] -> ShowS #

Monoid (PDoc s) Source # 

Methods

mempty :: PDoc s #

mappend :: PDoc s -> PDoc s -> PDoc s #

mconcat :: [PDoc s] -> PDoc s #

PrettyPrint s => PrettyPrint (PDoc s) Source # 

Methods

prettyPrint :: PDoc s -> String Source #

add :: s -> PDoc s -> PDoc s Source #

append :: [s] -> PDoc s -> PDoc s Source #

between :: PDoc s -> s -> s -> PDoc s -> PDoc s Source #

intercalate :: [[s]] -> [s] -> PDoc [s] -> PDoc [s] Source #