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
091dcbb0
Commit
091dcbb0
authored
Oct 20, 2003
by
simonpj
Browse files
[project @ 2003-10-20 14:04:07 by simonpj]
Wibble to the last commit; report derived warnings with -dppr-debug
parent
5943a1ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcRnMonad.lhs
View file @
091dcbb0
...
...
@@ -410,6 +410,8 @@ discardWarnings :: TcRn a -> TcRn a
-- With -dppr-debug, the effects is switched off, so you can still see
-- what warnings derived code would give
discardWarnings thing_inside
| opt_PprStyle_Debug = thing_inside
| otherwise
= do { errs_var <- newMutVar emptyMessages
; result <- setErrsVar errs_var thing_inside
; (_warns, errs) <- readMutVar errs_var
...
...
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