diff options
author | Thomas Schilling <nominolo@googlemail.com> | 2008-09-15 09:09:16 +0000 |
---|---|---|
committer | Thomas Schilling <nominolo@googlemail.com> | 2008-09-15 09:09:16 +0000 |
commit | 713ae4673aeef7f7607baa20be156b0db8a5234b (patch) | |
tree | 569408bb5effa568fd1760632accd53c678f0449 /src/Haddock/ModuleTree.hs | |
parent | 9869eb656ba0f51a505d6c2e882f413217178cd7 (diff) |
Port Haddock.Interface to new GHC API.
This required one bigger change: 'readInterfaceFile' used to take an
optional 'Session' argument. This was used to optionally update the
name cache of an existing GHC session. This does not work with the
new GHC API, because an active session requires the function to return
a 'GhcMonad' action, but this is not possible if no session is
provided.
The solution is to use an argument of functions for reading and
updating the name cache and to make the function work for any monad
that embeds IO, so it's result type can adapt to the calling context.
While refactoring, I tried to make the code a little more
self-documenting, mostly turning comments into function names.
Diffstat (limited to 'src/Haddock/ModuleTree.hs')
0 files changed, 0 insertions, 0 deletions