From 3ebdc745d7bc79307986332dc71f3495099b4579 Mon Sep 17 00:00:00 2001 From: David Waern Date: Sat, 26 Nov 2011 04:20:12 +0100 Subject: Give preference to type over data constructors for doc comment links at renaming time. Previously this was done in the backends. Also, warn when a doc comment refers to something that is in scope but which we don't have the .haddock file for. These changes mean we can make DocIdentifier [a] into DocIdentifier a. --- src/Haddock/Types.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Haddock/Types.hs') diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs index c9b29bd0..4989a067 100644 --- a/src/Haddock/Types.hs +++ b/src/Haddock/Types.hs @@ -275,7 +275,8 @@ data Doc id | DocAppend (Doc id) (Doc id) | DocString String | DocParagraph (Doc id) - | DocIdentifier [id] + | DocIdentifier id +-- | DocIdentifierOutOfScope [RdrName] | DocModule String | DocEmphasis (Doc id) | DocMonospaced (Doc id) @@ -310,7 +311,7 @@ data DocMarkup id a = Markup , markupString :: String -> a , markupParagraph :: a -> a , markupAppend :: a -> a -> a - , markupIdentifier :: [id] -> a + , markupIdentifier :: id -> a , markupModule :: String -> a , markupEmphasis :: a -> a , markupMonospaced :: a -> a -- cgit v1.2.3