GHC API (parsing)

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Mon Apr 14 07:37:06 EDT 2008


> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-0.3.3

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