parsing haskell source file to AST