#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 jochemb):

 Generalizing (++) may be confusing for newbies, but I think this is the
 best way to go.

 (+>) and (<+) are totally asymmetric, like (>>=) and (*>), whereas the
 type of (+>) is
 Monoid a => a -> a -> a

 (++) is (pretty obviously) not commutative, like (>>) and (&&), where
 there can be no confusion.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3339#comment:3>
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

Reply via email to