The abstract 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
Instances5Show, IsString, Semigroup, Monoid, Pretty
Show DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.TextIsString DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.TextSemigroup DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.TextMonoid DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.TextPretty DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text