Using GHC API to compile Haskell file