Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
Piyush P Kurur
Glasgow Haskell Compiler
Commits
47031db4
Commit
47031db4
authored
Jan 31, 2018
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more tc-tracing
parent
5e8d314d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
compiler/typecheck/TcSMonad.hs
compiler/typecheck/TcSMonad.hs
+9
-4
No files found.
compiler/typecheck/TcSMonad.hs
View file @
47031db4
...
...
@@ -421,11 +421,15 @@ data InertSet
}
instance
Outputable
InertSet
where
ppr
is
=
vcat
[
ppr
$
inert_cans
is
,
ppUnless
(
null
dicts
)
$
text
"Solved dicts"
<+>
vcat
(
map
ppr
dicts
)
]
ppr
(
IS
{
inert_cans
=
ics
,
inert_fsks
=
ifsks
,
inert_solved_dicts
=
solved_dicts
})
=
vcat
[
ppr
ics
,
text
"Inert fsks ="
<+>
ppr
ifsks
,
ppUnless
(
null
dicts
)
$
text
"Solved dicts ="
<+>
vcat
(
map
ppr
dicts
)
]
where
dicts
=
bagToList
(
dictsToBag
(
inert_solved_dicts
is
)
)
dicts
=
bagToList
(
dictsToBag
solved_dicts
)
emptyInert
::
InertSet
emptyInert
...
...
@@ -2899,6 +2903,7 @@ unflattenGivens :: IORef InertSet -> TcM ()
-- is nicely paired with the creation an empty inert_fsks list.
unflattenGivens
inert_var
=
do
{
inerts
<-
TcM
.
readTcRef
inert_var
;
TcM
.
traceTc
"unflattenGivens"
(
ppr
(
inert_fsks
inerts
))
;
mapM_
flatten_one
(
inert_fsks
inerts
)
}
where
flatten_one
(
fsk
,
ty
)
=
TcM
.
writeMetaTyVar
fsk
ty
...
...
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