Finite field arithmetic library for Haskell