More exports and documentation for GHC API Parser Module
I would like to be able to use the GHC API for parsing. Right now this is in the Parser and Lexer modules:
GHC currently exposes only a few parsers here. I'd like to make a few modifications:
- Expose a few more parsers than currently are exposed in the Parser module. In particular, I'd like import statements, type signatures, declarations, and expressions, at least, in addition to what's already there.
- Add some Haddock documentation to the top of the Parser module describing how to use it, since the types themselves are pretty opaque here.
- Export a clean and self-contained parsing API from the GHC module.
See minor discussion here: http://comments.gmane.org/gmane.comp.lang.haskell.ghc.devel/4791