Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Conversion from GenericData
to Doc
- data Doc :: *
- showLitCharInChar :: Char -> String
- showLitCharInString :: Char -> String
- toDoc :: GenericData -> Doc
Documentation
data Doc :: *
The abstract type of documents. A Doc represents a *set* of layouts. A Doc with no occurrences of Union or NoDoc represents just one layout.
showLitCharInChar :: Char -> String Source
IsString
instance for Doc
instance IsString Doc where fromString = text
Show a character literal. Unicode characters are not escaped.
showLitCharInString :: Char -> String Source
Show a character in a string literal. Unicode characters are not escaped.
toDoc :: GenericData -> Doc Source
Convert GenericData
to Doc
.