Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
395
Merge Requests
395
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
2183c879
Commit
2183c879
authored
Apr 04, 2012
by
dimitris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More informative tracing for ddump-cs-trace
parent
8737d47e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
compiler/typecheck/TcInteract.lhs
compiler/typecheck/TcInteract.lhs
+9
-6
compiler/typecheck/TcSMonad.lhs
compiler/typecheck/TcSMonad.lhs
+1
-0
No files found.
compiler/typecheck/TcInteract.lhs
View file @
2183c879
...
...
@@ -268,8 +268,7 @@ spontaneousSolveStage workItem
spont_solve (SPSolved workItem') -- Post: workItem' must be equality
= do { bumpStepCountTcS
; traceFireTcS (cc_depth workItem) $
ptext (sLit "Spontaneous")
<+> parens (ppr (cc_flavor workItem)) <+> ppr workItem
ptext (sLit "Spontaneous:") <+> ppr workItem
-- NB: will add the item in the inerts
; kickOutRewritableInerts workItem'
...
...
@@ -669,9 +668,9 @@ interactWithInertsStage wi
interact_next (ContinueWith wi) atomic_inert
= do { ir <- doInteractWithInert atomic_inert wi
; let mk_msg rule keep_doc
= text rule <+> keep_doc
<+> vcat [ ptext (sLit "Inert
=") <+> ppr atomic_inert
, ptext (sLit "Work =")
<+> ppr wi ]
=
vcat [
text rule <+> keep_doc
, ptext (sLit "InertItem
=") <+> ppr atomic_inert
, ptext (sLit "WorkItem =")
<+> ppr wi ]
; case ir of
IRWorkItemConsumed { ir_fire = rule }
-> do { bumpStepCountTcS
...
...
@@ -1424,7 +1423,8 @@ tryTopReact wi
SomeTopInt rule what_next
-> do { bumpStepCountTcS
; traceFireTcS (cc_depth wi) $
ptext (sLit "Top react:") <+> text rule
vcat [ ptext (sLit "Top react:") <+> text rule
, text "WorkItem =" <+> ppr wi ]
; return what_next }
} }
...
...
@@ -1851,6 +1851,9 @@ matchClassInst inerts clas tys loc
= do { let pred = mkClassPred clas tys
; mb_result <- matchClass clas tys
; untch <- getUntouchables
; traceTcS "matchClassInst" $ vcat [ text "pred =" <+> ppr pred
, text "inerts=" <+> ppr inerts
, text "untouchables=" <+> ppr untch ]
; case mb_result of
MatchInstNo -> return NoInstance
MatchInstMany -> return NoInstance -- defer any reactions of a multitude until
...
...
compiler/typecheck/TcSMonad.lhs
View file @
2183c879
...
...
@@ -1453,6 +1453,7 @@ matchClass :: Class -> [Type] -> TcS (MatchInstResult (DFunId, [Either TyVar TcT
matchClass clas tys
= do { let pred = mkClassPred clas tys
; instEnvs <- getInstEnvs
; traceTcS "matchClass" $ text "instEnvs=" <+> ppr instEnvs
; case lookupInstEnv instEnvs clas tys of {
([], unifs, _) -- Nothing matches
-> do { traceTcS "matchClass not matching"
...
...
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