Safe Haskell | Safe |
---|---|
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.
Eq Doc | |
Show Doc | |
IsString Doc | |
Generic Doc | |
Monoid Doc | |
NFData Doc | |
type Rep Doc = D1 D1Doc ((:+:) ((:+:) ((:+:) (C1 C1_0Doc U1) (C1 C1_1Doc (S1 NoSelector (Rec0 Doc)))) ((:+:) (C1 C1_2Doc ((:*:) (S1 NoSelector (Rec0 TextDetails)) ((:*:) (S1 NoSelector (Rec0 Int)) (S1 NoSelector (Rec0 Doc))))) (C1 C1_3Doc ((:*:) (S1 NoSelector (Rec0 Int)) (S1 NoSelector (Rec0 Doc)))))) ((:+:) ((:+:) (C1 C1_4Doc ((:*:) (S1 NoSelector (Rec0 Doc)) (S1 NoSelector (Rec0 Doc)))) (C1 C1_5Doc U1)) ((:+:) (C1 C1_6Doc ((:*:) (S1 NoSelector (Rec0 Doc)) ((:*:) (S1 NoSelector (Rec0 Bool)) (S1 NoSelector (Rec0 Doc))))) (C1 C1_7Doc ((:*:) (S1 NoSelector (Rec0 Doc)) ((:*:) (S1 NoSelector (Rec0 Bool)) (S1 NoSelector (Rec0 Doc)))))))) |
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
.