Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 73707ed

Browse files
committed
outOfScope: Recommend qualifying the identifier
1 parent d504a28 commit 73707ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haddock-api/src/Haddock/Interface/LexParseRn.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ outOfScope dflags x =
164164
Exact name -> warnAndMonospace name -- Shouldn't happen since x is out of scope
165165
where
166166
warnAndMonospace a = do
167-
tell ["Warning: '" ++ showPpr dflags a ++ "' is out of scope."]
167+
tell ["Warning: '" ++ showPpr dflags a ++ "' is out of scope.\n" ++
168+
" If you qualify the identifier, haddock can try to link it\n" ++
169+
" it anyway."]
168170
pure (monospaced a)
169171
monospaced a = DocMonospaced (DocString (showPpr dflags a))
170172

0 commit comments

Comments
 (0)