swap package:ghc-internal

Swap the components of a pair.
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 bytes in a word.
Swap bytes in the lower 16 bits of a word. The higher bytes are undefined.
Swap bytes in the lower 32 bits of a word. The higher bytes are undefined.
Swap bytes in a 64 bits of a word.
Atomically replace the contents of an IORef, returning the old contents.
Reverse order of bytes in Word16.
Reverse order of bytes in Word32.
Reverse order of bytes in Word64.