[GHC] #1996: Make "swap" a top-level function
GHC
trac at galois.com
Fri Dec 21 14:05:57 EST 2007
#1996: Make "swap" a top-level function
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
-----------------------------+----------------------------------------------
Comment (by guest):
In the Control.Arrow module, in the definition for ''second'', there is a
utility function defined: swap, which takes a pair, and returns a pair
with the first and second members in opposite places. I would like to see
that function broken out of the Control.Arrow module, and made a top-level
function in the Data.Tuple module.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1996#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list