xcb-types-0.7.1: 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 #

Minimal complete definition:

One of pretty or toDoc.

Methods

toDoc :: a -> Doc #

pretty :: a -> String #

Instances

Pretty Int # 

Methods

toDoc :: Int -> Doc #

pretty :: Int -> String #

Pretty String # 

Methods

toDoc :: String -> Doc #

pretty :: String -> String #

Pretty Unop # 

Methods

toDoc :: Unop -> Doc #

pretty :: Unop -> String #

Pretty Binop # 

Methods

toDoc :: Binop -> Doc #

pretty :: Binop -> String #

Pretty Type # 

Methods

toDoc :: Type -> Doc #

pretty :: Type -> String #

Pretty a => Pretty (Maybe a) # 

Methods

toDoc :: Maybe a -> Doc #

pretty :: Maybe a -> String #

Pretty a => Pretty (Expression a) # 

Methods

toDoc :: Expression a -> Doc #

pretty :: Expression a -> String #

Pretty a => Pretty (EnumElem a) # 

Methods

toDoc :: EnumElem a -> Doc #

pretty :: EnumElem a -> String #

Pretty a => Pretty (GenXidUnionElem a) # 
Pretty a => Pretty (GenBitCase a) # 

Methods

toDoc :: GenBitCase a -> Doc #

pretty :: GenBitCase a -> String #

Pretty a => Pretty (GenStructElem a) # 
Pretty a => Pretty (GenXDecl a) # 

Methods

toDoc :: GenXDecl a -> Doc #

pretty :: GenXDecl a -> String #

Pretty a => Pretty (GenXHeader a) # 

Methods

toDoc :: GenXHeader a -> Doc #

pretty :: GenXHeader a -> String #