The data type Doc represents pretty documents.
Doc is an instance of the Show class. (show doc) pretty
prints document doc with a page width of 100 characters and a
ribbon width of 40 characters.
show (text "hello" <#> text "world")Which would return the string "hello\nworld", i.e.
hello
world
Instances9Functor, Show, IsString, Generic, Semigroup, Monoid, …
Functor DocDefined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLShow (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLIsString (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLGeneric (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLSemigroup (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLMonoid (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLNFData a => NFData (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLPretty (Doc a)Defined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WLtype Rep (Doc a) = D1 ('MetaDataDefined in wl-pprint-annotated-0.1.0.1 · Text.PrettyPrint.Annotated.WL"Doc"
"Text.PrettyPrint.Annotated.WL"
"wl-pprint-annotated-0.1.0.1-4YugZQah6adLMrWNKXXNDg"
'False) (((C1 ('MetaCons"Empty"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"Char"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Char)) :+: C1 ('MetaCons"Text"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))) :+: (C1 ('MetaCons"Line"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"FlatAlt"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: C1 ('MetaCons"Cat"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)))))) :+: ((C1 ('MetaCons"Nest"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: (C1 ('MetaCons"Union"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: C1 ('MetaCons"Annotate"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))))) :+: ((C1 ('MetaCons"Column"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int -> Doc a))) :+: C1 ('MetaCons"Nesting"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int -> Doc a)))) :+: (C1 ('MetaCons"Columns"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int -> Doc a))) :+: C1 ('MetaCons"Ribbon"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int -> Doc a)))))))