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:
Parser: http://www.haskell.org/ghc/docs/7.8.2/html/libraries/ghc-7.8.2/Parser.html Lexer: http://www.haskell.org/ghc/docs/7.8.2/html/libraries/ghc-7.8.2/Lexer.html
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
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.2 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHC API |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |