[Haskell] using the ffi with callbacks