Haskell FFI for calculating MT2