aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Interface/Create.hs
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2020-04-15 09:56:55 -0400
committerAlec Theriault <alec.theriault@gmail.com>2020-04-15 07:30:51 -0700
commit83f0fa0b6218c34898337bf41072ee5fedec1bde (patch)
tree880845623e1a21fa9c117f7f530591df59168cf6 /haddock-api/src/Haddock/Interface/Create.hs
parent8d83110789def9207463a035fa766b78ebf5fdd9 (diff)
Don't warn about missing links in miminal sigs
When renaming the Haddock interface, never emit warnings when renaming a minimal signature. Also added some documention around `renameInterface`. Minimal signatures intentionally include references to potentially un-exported methods (see the discussion in #330), so it is expected that they will not always have a link destination. On the principle that warnings should always be resolvable, this shouldn't produce a warning. See #1070.
Diffstat (limited to 'haddock-api/src/Haddock/Interface/Create.hs')
-rw-r--r--haddock-api/src/Haddock/Interface/Create.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs
index f29f576e..0f24afaa 100644
--- a/haddock-api/src/Haddock/Interface/Create.hs
+++ b/haddock-api/src/Haddock/Interface/Create.hs
@@ -188,10 +188,10 @@ createInterface tm flags modMap instIfaceMap = do
, ifaceOptions = opts
, ifaceDocMap = prunedDocMap
, ifaceArgMap = prunedArgMap
- , ifaceRnDocMap = M.empty
- , ifaceRnArgMap = M.empty
+ , ifaceRnDocMap = M.empty -- Filled in `renameInterface`
+ , ifaceRnArgMap = M.empty -- Filled in `renameInterface`
, ifaceExportItems = prunedExportItems
- , ifaceRnExportItems = []
+ , ifaceRnExportItems = [] -- Filled in `renameInterface`
, ifaceExports = exportedNames
, ifaceVisibleExports = visibleNames
, ifaceDeclMap = declMap