[Haskell-beginners] Ffi, memory allocation and failure