Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ebd13958
Commit
ebd13958
authored
Jul 27, 2010
by
simonpj@microsoft.com
Browse files
Suppress warnings about recursive INLINE in output of desugarer
parent
a819f3db
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/simplCore/CoreMonad.lhs
View file @
ebd13958
...
...
@@ -166,6 +166,11 @@ displayLintResults dflags pass warns errs binds
; Err.ghcExit dflags 1 }
| not (isEmptyBag warns)
, not (case pass of { CoreDesugar -> True; _ -> False })
-- Suppress warnings after desugaring pass because some
-- are legitimate. Notably, the desugarer generates instance
-- methods with INLINE pragmas that form a mutually recursive
-- group. Only afer a round of simplification are they unravelled.
, not opt_NoDebugOutput
, showLintWarnings pass
= printDump (banner "warnings" $$ Err.pprMessageBag warns)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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