Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
be86978a
Commit
be86978a
authored
Nov 22, 2008
by
Thomas Schilling
Browse files
Report source span instead of just source location for unused names.
parent
12462936
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/rename/RnEnv.lhs
View file @
be86978a
...
...
@@ -1029,7 +1029,7 @@ warnUnusedBinds names = mappM_ warnUnusedName (filter reportable names)
warnUnusedName :: (Name, Provenance) -> RnM ()
warnUnusedName (name, LocalDef)
= addUnusedWarning name
(srcLocSpan
(nameSrc
Loc
name)
)
= addUnusedWarning name (nameSrc
Span
name)
(ptext (sLit "Defined but not used"))
warnUnusedName (name, Imported is)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment