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

Copyright | (c) Antoine Latter 2008
License | BSD3
Maintainer | Antoine Latter <aslatter@gmail.com>
Stability | provisional
Portability | portable - requires TypeSynonymInstances
Safe Haskell | Safe-Inferred
Language | Haskell2010

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

- class Pretty a where
  - toDoc :: a -> Doc
  - pretty :: a -> String
- bitCaseHeader :: Pretty a => Maybe Name -> Expression a -> Doc

# 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 Alignment Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Alignment -> Doc Source # pretty :: Alignment -> String Source #
Pretty AllowedEvent Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: AllowedEvent -> Doc Source # pretty :: AllowedEvent -> String Source #
Pretty Binop Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Binop -> Doc Source # pretty :: Binop -> String Source #
Pretty PadType Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: PadType -> Doc Source # pretty :: PadType -> String Source #
Pretty Type Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Type -> Doc Source # pretty :: Type -> String Source #
Pretty Unop Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Unop -> Doc Source # pretty :: Unop -> String Source #
Pretty String Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: String -> Doc Source # pretty :: String -> String Source #
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 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 (Expression a) Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Expression a -> Doc Source # pretty :: Expression 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 #
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 (Maybe a) Source # |
Instance details Defined in Data.XCB.Pretty Methods toDoc :: Maybe a -> Doc Source # pretty :: Maybe a -> String Source #

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