Proposal #3339: Add (+>) as a synonym for mappend

Jean-Philippe Bernardy jeanphilippe.bernardy at gmail.com
Fri Sep 18 03:55:09 EDT 2009


> Is it possible that the pretty-printing <> is in fact just another instance
> of the Monoidal mappend?

Yes.

(<>) :: Doc -> Doc -> Doc	Source
Beside. <> is associative, with identity empty.

http://haskell.org/ghc/docs/latest/html/libraries/pretty/Text-PrettyPrint-HughesPJ.html#v%3A<>

-- JP


More information about the Libraries mailing list