Data.XCB.Pretty

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

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
- bitCaseHeader :: Pretty a => Maybe Name -> Expression a -> Doc

# 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) # |
Methods toDoc :: GenXidUnionElem a -> Doc # pretty :: GenXidUnionElem a -> String #
Pretty a => Pretty (GenBitCase a) # |
Methods toDoc :: GenBitCase a -> Doc # pretty :: GenBitCase a -> String #
Pretty a => Pretty (GenStructElem a) # |
Methods toDoc :: GenStructElem a -> Doc # pretty :: GenStructElem a -> String #
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 #

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