Skip to content

Make "swap" a top-level function

In the module,Control.Arrow, 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.

Trac metadata
Trac field Value
Version 6.8.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information