Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Fumiaki Kinoshita
GHC
Commits
3012c431
Commit
3012c431
authored
Sep 25, 2016
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Outputable Report in TcErrors
...just for debug output
parent
66a8c194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
compiler/typecheck/TcErrors.hs
compiler/typecheck/TcErrors.hs
+5
-0
No files found.
compiler/typecheck/TcErrors.hs
View file @
3012c431
...
...
@@ -216,6 +216,11 @@ data Report
,
report_relevant_bindings
::
[
SDoc
]
}
instance
Outputable
Report
where
-- Debugging only
ppr
(
Report
{
report_important
=
imp
,
report_relevant_bindings
=
rel
})
=
vcat
[
text
"important:"
<+>
vcat
imp
,
text
"relevant:"
<+>
vcat
rel
]
{- Note [Error report]
The idea is that error msgs are divided into three parts: the main msg, the
context block (\"In the second argument of ...\"), and the relevant bindings
...
...
Write
Preview
Markdown
is supported
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