diff options
author | David Waern <david.waern@gmail.com> | 2010-08-29 13:03:28 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2010-08-29 13:03:28 +0000 |
commit | d5ec98534422eba93298bb8a76e6b315a55c3158 (patch) | |
tree | 72a4c3e98b60199e4bf1808878a81d441fa9b84c /src/Haddock/Types.hs | |
parent | a01b2ef92f9164734d6673b1f3e01cde8da477c8 (diff) |
Add source entity path to --read-interface
You can now use this flag like this:
--read-interface=<html path>,<source entity path>,<.haddock file>
By "source entity path" I mean the same thing that is specified with the
--source-entity flag. The purpose of this is to be able to specify the source
entity path per package, to allow source links to work in the presence of
cross-package documentation.
When given two arguments or less the --read-interface flag behaves as before.
Diffstat (limited to 'src/Haddock/Types.hs')
-rw-r--r-- | src/Haddock/Types.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs index 62a603ee..3ec37469 100644 --- a/src/Haddock/Types.hs +++ b/src/Haddock/Types.hs @@ -37,8 +37,10 @@ import Name type IfaceMap = Map Module Interface type InstIfaceMap = Map Module InstalledInterface type DocMap = Map Name (Doc DocName) +type SrcMap = Map PackageId FilePath type Decl = LHsDecl Name type GhcDocHdr = Maybe LHsDocString +type DocPaths = (FilePath, Maybe FilePath) -- paths to HTML and sources ----------------------------------------------------------------------------- |