xcb-types-0.9.0: Parses XML files used by the XCB project

Copyright(c) Antoine Latter 2008
LicenseBSD3
MaintainerAntoine Latter <aslatter@gmail.com>
Stabilityprovisional
Portabilityportable - requires TypeSynonymInstances
Safe HaskellSafe
LanguageHaskell98

Data.XCB.Pretty

Description

Pretty-printers for the tyes declared in this package. This does NOT ouput XML - it produces human-readable information intended to aid in debugging.

Synopsis

Documentation

class Pretty a where Source #

Minimal complete definition:

One of pretty or toDoc.

Methods

toDoc :: a -> Doc Source #

pretty :: a -> String Source #

Instances

Pretty Bool Source # 
Pretty Int Source # 

Methods

toDoc :: Int -> Doc Source #

pretty :: Int -> String Source #

Pretty String Source # 
Pretty AllowedEvent Source # 
Pretty Alignment Source # 
Pretty Unop Source # 
Pretty Binop Source # 
Pretty Type Source # 
Pretty a => Pretty (Maybe a) Source # 

Methods

toDoc :: Maybe a -> Doc Source #

pretty :: Maybe a -> String Source #

Pretty a => Pretty (Expression a) Source # 
Pretty a => Pretty (EnumElem a) Source # 
Pretty a => Pretty (GenXidUnionElem a) Source # 
Pretty a => Pretty (GenBitCase a) Source # 
Pretty a => Pretty (GenStructElem a) Source # 
Pretty a => Pretty (GenXDecl a) Source # 
Pretty a => Pretty (GenXHeader a) Source #