Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
737e2ddb
Commit
737e2ddb
authored
Nov 17, 2009
by
simonpj@microsoft.com
Browse files
Improvements to pretty-printing of Core
parent
623e6139
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/coreSyn/PprCore.lhs
View file @
737e2ddb
...
...
@@ -269,9 +269,6 @@ pprCoreBinder LambdaBind bndr
-- Case bound things don't get a signature or a herald, unless we have debug on
pprCoreBinder CaseBind bndr
| isDeadBinder bndr -- False for tyvars
= ptext (sLit "_")
| otherwise
= getPprStyle $ \ sty ->
if debugStyle sty then
parens (pprTypedBinder bndr)
...
...
@@ -420,8 +417,9 @@ instance Outputable Unfolding where
UnfoldNever -> usually_empty
UnfoldIfGoodArgs {} -> usually_empty
_other -> pp_tmpl
usually_empty = ifPprDebug pp_tmpl
-- In this case show 'rhs' only in debug mode
usually_empty = ifPprDebug (ptext (sLit "<rhs>"))
-- Don't print the RHS or we get a quadratic
-- blowup in the size of the printout!
\end{code}
-----------------------------------------------------
...
...
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