swap package:rebase

Swap the components of a pair.
Swap the Left and Right sides of an Either.
>>> swapEither (Right 3)
Left 3
>>> swapEither (Left "error")
Right "error"
Take a value from an MVar, put a new value into the MVar and return the value taken. This function is atomic only if there are no other producers for this MVar. In other words, it cannot guarantee that, by the time swapMVar gets the chance to write to the MVar, the value of the MVar has not been altered by a write operation from another thread.
Swap the contents of a TMVar for a new value.
Swap the contents of a TVar for a new value.
Reverse order of bytes in Word16.
Reverse order of bytes in Word32.
Reverse order of bytes in Word64.