Add a bunch of Haskell API functions and exports