curry package:basic-prelude

curry converts an uncurried function to a curried function.
uncurry converts a curried function to a function on pairs.