GHC API (parsing)

Johannes Waldmann waldmann at
Mon Apr 14 07:37:06 EDT 2008


interesting, I'll look into that.

* it's not exactly a drop-in replacement for Language.Haskell.* ?
  (HsNewTypeDecl is different?)

*  for the others, number of constructor arguments does not match, e.g.
   `HsConDecl' should have 2 arguments, but has been given 3

* how is your parser tied to ghc?
  I.e. what happens if the next ghc release introduces new syntax?

general question

* is there any parser that keeps comments
  (i.e. makes AST nodes from them)? what parser does Haddock use?

Best regards, J.W.

More information about the Glasgow-haskell-users mailing list