Haskell FFI bindings to MegaHAL