#3339: Data.Monoid: Add (+>) as a synonym for mappend
------------------------------+---------------------------------------------
Reporter: bos | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.10.3
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by JulesBean):
I think it's useful for Endo a, where you sometimes want to postcompose
and sometimes precompose functions.
I think it's useful for any monoid which represents something like the
composition of a graphical image, where precomposition is putting
something 'underneath' and postcomposition is putting something 'on top'.
I suspect you quite often get Monoids along those general lines in DSLs;
I've certainly seen a view.
Of course the case for a special flipped operator can never be that
strong; you can always just write an expression the other way around.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3339#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs