#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:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown

Comment:

 Replying to [comment:1 YitzGale]:
 > I would usually spell this
 >
 > {{{
 > swap = uncurry $ flip (,)
 > }}}
 >
 > That supports your choice of the lazy version as unprimed.

 I had tongue firmly in cheek when I suggested using this definition on
 haskell-cafe a while ago.  I am not sure whether to be horrified or amused
 that some people would actually prefer to write it that way!

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