#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  |  
---------------------------------+------------------------------------------
Comment (by YitzGale):

 I wrote:
 > > {{{swap = uncurry $ flip (,)}}}

 simonmar wrote:
 > 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!

 He he, I didn't even remember that, perhaps I didn't see it.

 Anyway, I never meant to suggest that it should actually
 be written that way in the libraries.
 Just that the laziness of the natural points-free
 version is evidence in support of laziness. And I have
 retracted even that claim.

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