Use Haskell object instead of C Pointer.