language-c-0.9.4: Analysis and generation of C code
Copyright(c) 2008 Benedikt Huber
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityprototype
Portabilityghc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.C.Analysis.Debug

Description

Pretty printing the semantic analysis representation. This is currently only intended for debugging purposes.

Documentation

prettyAssocs :: (Pretty k, Pretty v) => String -> [(k, v)] -> Doc Source #

prettyAssocsWith :: String -> (k -> Doc) -> (v -> Doc) -> [(k, v)] -> Doc Source #

Orphan instances

Pretty DefTable Source # 
Instance details

Pretty TagFwdDecl Source # 
Instance details

Pretty Attr Source # 
Instance details

Pretty Attributes Source # 
Instance details

Pretty CompTyKind Source # 
Instance details

Pretty CompType Source # 
Instance details

Pretty CompTypeRef Source # 
Instance details

Pretty Decl Source # 
Instance details

Pretty DeclAttrs Source # 
Instance details

Pretty EnumType Source # 
Instance details

Pretty EnumTypeRef Source # 
Instance details

Pretty Enumerator Source # 
Instance details

Pretty FunDef Source # 
Instance details

Pretty FunctionAttrs Source # 
Instance details

Pretty GlobalDecls Source # 
Instance details

Pretty IdentDecl Source # 
Instance details

Pretty Linkage Source # 
Instance details

Pretty MemberDecl Source # 
Instance details

Pretty ObjDef Source # 
Instance details

Pretty ParamDecl Source # 
Instance details

Pretty Storage Source # 
Instance details

Pretty TagDef Source # 
Instance details

Pretty Type Source # 
Instance details

Pretty TypeDef Source # 
Instance details

Pretty TypeQuals Source # 
Instance details

Pretty VarDecl Source # 
Instance details

Pretty VarName Source # 
Instance details

Pretty Ident Source # 
Instance details

Pretty SUERef Source # 
Instance details

(Pretty a, Pretty b) => Pretty (Either a b) Source # 
Instance details

Methods

pretty :: Either a b -> Doc Source #

prettyPrec :: Int -> Either a b -> Doc Source #