xcb-types-0.10.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.

Minimal complete definition

Nothing

Methods

toDoc :: a -> Doc Source #

pretty :: a -> String Source #

Instances

Instances details
Pretty Bool Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Bool -> Doc Source #

pretty :: Bool -> String Source #

Pretty Int Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Int -> Doc Source #

pretty :: Int -> String Source #

Pretty String Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: String -> Doc Source #

pretty :: String -> String Source #

Pretty AllowedEvent Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: AllowedEvent -> Doc Source #

pretty :: AllowedEvent -> String Source #

Pretty Alignment Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Alignment -> Doc Source #

pretty :: Alignment -> String Source #

Pretty Unop Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Unop -> Doc Source #

pretty :: Unop -> String Source #

Pretty Binop Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Binop -> Doc Source #

pretty :: Binop -> String Source #

Pretty Type Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Type -> Doc Source #

pretty :: Type -> String Source #

Pretty a => Pretty (Maybe a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Maybe a -> Doc Source #

pretty :: Maybe a -> String Source #

Pretty a => Pretty (Expression a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: Expression a -> Doc Source #

pretty :: Expression a -> String Source #

Pretty a => Pretty (EnumElem a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: EnumElem a -> Doc Source #

pretty :: EnumElem a -> String Source #

Pretty a => Pretty (GenXidUnionElem a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: GenXidUnionElem a -> Doc Source #

pretty :: GenXidUnionElem a -> String Source #

Pretty a => Pretty (GenBitCase a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: GenBitCase a -> Doc Source #

pretty :: GenBitCase a -> String Source #

Pretty a => Pretty (GenStructElem a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: GenStructElem a -> Doc Source #

pretty :: GenStructElem a -> String Source #

Pretty a => Pretty (GenXDecl a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: GenXDecl a -> Doc Source #

pretty :: GenXDecl a -> String Source #

Pretty a => Pretty (GenXHeader a) Source # 
Instance details

Defined in Data.XCB.Pretty

Methods

toDoc :: GenXHeader a -> Doc Source #

pretty :: GenXHeader a -> String Source #

bitCaseHeader :: Pretty a => Maybe Name -> Expression a -> Doc Source #