... | ... | @@ -3,8 +3,8 @@ |
|
|
|
|
|
This Wiki page shall serve as a central place to collect all issues and ideas related to the GHC API. If you feel that something is missing from this page, please add a comment to the comment section below.
|
|
|
|
|
|
- [ Source code](http://code.haskell.org/~nominolo/src/ghc/)
|
|
|
- [ Haddock docs](http://code.haskell.org/~nominolo/html/ghc/) (may occasionally be out of date with the source)
|
|
|
- [Source code](http://code.haskell.org/~nominolo/src/ghc/)
|
|
|
- [Haddock docs](http://code.haskell.org/~nominolo/html/ghc/) (may occasionally be out of date with the source)
|
|
|
|
|
|
---
|
|
|
|
... | ... | @@ -202,13 +202,13 @@ There are also a few non-functional requirements: |
|
|
|
|
|
## Related Documents and Discussions
|
|
|
|
|
|
- [ The GSoC proposal](http://code.google.com/soc/2008/haskell/appinfo.html?csaid=4189AF2C8AE5E25A)
|
|
|
- Related GSoC project [ Dynamically Loaded Plugins for the Glasgow Haskell Compiler](http://code.google.com/soc/2008/haskell/appinfo.html?csaid=69C2ABD1E013EE0C)
|
|
|
- Haskell-cafe question: [ How to get the typechecked AST?](http://www.haskell.org/pipermail/haskell-cafe/2008-May/042616.html)
|
|
|
- [ Porting HaRe to the GHC API](http://www.cs.kent.ac.uk/pubs/2005/2266/) Technical report describing some difficulties with the current API.
|
|
|
- [ GHC as a Library](http://www.haskell.org/haskellwiki/GHC/As_a_library), the Haskell Wiki page
|
|
|
- [ GHC Commentary on the GHC API](Commentary/Compiler/API) (may be outdated)
|
|
|
- [ hint, an attempt to provide a simplified and stable subset of the GHC API](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hint-0.2.1)
|
|
|
- [The GSoC proposal](http://code.google.com/soc/2008/haskell/appinfo.html?csaid=4189AF2C8AE5E25A)
|
|
|
- Related GSoC project [Dynamically Loaded Plugins for the Glasgow Haskell Compiler](http://code.google.com/soc/2008/haskell/appinfo.html?csaid=69C2ABD1E013EE0C)
|
|
|
- Haskell-cafe question: [How to get the typechecked AST?](http://www.haskell.org/pipermail/haskell-cafe/2008-May/042616.html)
|
|
|
- [Porting HaRe to the GHC API](http://www.cs.kent.ac.uk/pubs/2005/2266/) Technical report describing some difficulties with the current API.
|
|
|
- [GHC as a Library](http://www.haskell.org/haskellwiki/GHC/As_a_library), the Haskell Wiki page
|
|
|
- [GHC Commentary on the GHC API](Commentary/Compiler/API) (may be outdated)
|
|
|
- [hint, an attempt to provide a simplified and stable subset of the GHC API](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hint-0.2.1)
|
|
|
|
|
|
## Various Ideas, Comments, Questions
|
|
|
|
... | ... | @@ -219,14 +219,14 @@ There are also a few non-functional requirements: |
|
|
- **Ast Traversals/Queries**, see: [GhcApiAstTraversals](ghc-api-ast-traversals)
|
|
|
|
|
|
- Is it possible to use standalone deriving to get a **generic programming framework over the ASTs** without blowing up GHC's code for its own use (deriving Data, etc.)? (Claus Reinke)
|
|
|
- David Waern mentions [ deriving \`Data.Traversable\`](http://www.haskell.org/pipermail/haskell-cafe/2008-May/042961.html) for GHC's AST
|
|
|
- David Waern mentions [deriving \`Data.Traversable\`](http://www.haskell.org/pipermail/haskell-cafe/2008-May/042961.html) for GHC's AST
|
|
|
- **GHC library directory in GHC API clients**
|
|
|
|
|
|
- the need to hardcode the libdir is very fragile and troublesome (cf. the [ Haddock version during build](http://www.haskell.org/pipermail/cvs-libraries/2008-June/008942.html) thread on `cvs-libraries` for just one example). would it be possible to integrate the path for the compiling GHC as a default, so that one only needs to specify an explicit path if the default doesn't work (compiling GHC moved/unavailable)? (Claus Reinke)
|
|
|
- this has been addressed by the new [ ghc-paths](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-paths) package
|
|
|
- the need to hardcode the libdir is very fragile and troublesome (cf. the [Haddock version during build](http://www.haskell.org/pipermail/cvs-libraries/2008-June/008942.html) thread on `cvs-libraries` for just one example). would it be possible to integrate the path for the compiling GHC as a default, so that one only needs to specify an explicit path if the default doesn't work (compiling GHC moved/unavailable)? (Claus Reinke)
|
|
|
- this has been addressed by the new [ghc-paths](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-paths) package
|
|
|
- **binary incompatibility of GHC versions**
|
|
|
|
|
|
- this also affects GHC Api clients, see [ the Haddock 2 in GHC build issues](http://www.haskell.org/pipermail/cvs-ghc/2008-July/043568.html) for an infamous example
|
|
|
- this also affects GHC Api clients, see [the Haddock 2 in GHC build issues](http://www.haskell.org/pipermail/cvs-ghc/2008-July/043568.html) for an infamous example
|
|
|
- From `compiler/main/GHC.hs`:
|
|
|
|
|
|
```wiki
|
... | ... | |