diff options
author | david.waern <david.waern@gmail.com> | 2010-02-24 22:55:08 +0000 |
---|---|---|
committer | david.waern <david.waern@gmail.com> | 2010-02-24 22:55:08 +0000 |
commit | 97e1bf46f4c747ac36afacc837313f4d7d5c917c (patch) | |
tree | 4a7e1efb806bcb26935cb149116afcc6c67f10de /src/Haddock/Interface.hs | |
parent | cbf4243a44855b3ac305a8d954cc7e7acef7afaf (diff) |
Large additions to the Haddock API
Also improved and added more doc comments.
Diffstat (limited to 'src/Haddock/Interface.hs')
-rw-r--r-- | src/Haddock/Interface.hs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index 8816b294..ffe2ae71 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -40,10 +40,15 @@ import Digraph import HscTypes --- | Turn a topologically sorted list of module names/filenames into interfaces. Also --- return the home link environment created in the process. -createInterfaces :: Verbosity -> [String] -> [Flag] -> [InterfaceFile] - -> Ghc ([Interface], LinkEnv) +-- | Create 'Interface' structures by typechecking the list of modules +-- using the GHC API and processing the resulting syntax trees. +createInterfaces + :: Verbosity -- ^ Verbosity of logging to 'stdout' + -> [String] -- ^ A list of file or module names sorted by module topology + -> [Flag] -- ^ Command-line flags + -> [InterfaceFile] -- ^ Interface files of package dependencies + -> Ghc ([Interface], LinkEnv) + -- ^ Resulting list of interfaces and renaming environment createInterfaces verbosity modules flags extIfaces = do -- part 1, create interfaces let instIfaceMap = Map.fromList [ (instMod iface, iface) | ext <- extIfaces |