use nitro haskell bindings without memory leaks