added mkApp to the Haskell binding