added C and Haskell bindings for getFunctionType