mmsyn2 is the library that can be used for multiple (Ord a) => a -> b transformations.
Since the 0.2.0.0 version there are two modules with the similar functionality: for boxed and unboxed vectors. The last one is probably more efficient in some cases.