#3298: Add swap to Data.Tuple
------------------------------+---------------------------------------------
 Reporter:  r6                |          Owner:                  
     Type:  proposal          |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  libraries/base    |        Version:  6.10.2          
 Severity:  normal            |     Resolution:                  
 Keywords:                    |       Testcase:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by YitzGale):

 I would usually spell this

 {{{
 swap = uncurry $ flip (,)
 }}}

 That supports your choice of the lazy version as unprimed.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3298#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to