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
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
Alex D
GHC
Commits
0f43d0db
Commit
0f43d0db
authored
Jan 31, 2018
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tc-tracing
parent
e7c3878d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
compiler/typecheck/TcInteract.hs
compiler/typecheck/TcInteract.hs
+9
-2
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcRnTypes.hs
+1
-1
No files found.
compiler/typecheck/TcInteract.hs
View file @
0f43d0db
...
...
@@ -1117,12 +1117,19 @@ addFunDepWork inerts work_ev cls
add_fds
inert_ct
|
isImprovable
inert_ev
=
emitFunDepDeriveds
$
=
do
{
traceTcS
"addFunDepWork"
(
vcat
[
ppr
work_ev
,
pprCtLoc
work_loc
,
ppr
(
isGivenLoc
work_loc
)
,
pprCtLoc
inert_loc
,
ppr
(
isGivenLoc
inert_loc
)
,
pprCtLoc
derived_loc
,
ppr
(
isGivenLoc
derived_loc
)
])
;
emitFunDepDeriveds
$
improveFromAnother
derived_loc
inert_pred
work_pred
-- We don't really rewrite tys2, see below _rewritten_tys2, so that's ok
-- NB: We do create FDs for given to report insoluble equations that arise
-- from pairs of Givens, and also because of floating when we approximate
-- implications. The relevant test is: typecheck/should_fail/FDsFromGivens.hs
}
|
otherwise
=
return
()
where
...
...
@@ -1739,7 +1746,7 @@ emitFunDepDeriveds fd_eqns
where
do_one_FDEqn
(
FDEqn
{
fd_qtvs
=
tvs
,
fd_eqs
=
eqs
,
fd_loc
=
loc
})
|
null
tvs
-- Common shortcut
=
do
{
traceTcS
"emitFunDepDeriveds 1"
(
ppr
(
ctl_depth
loc
)
$$
ppr
eqs
)
=
do
{
traceTcS
"emitFunDepDeriveds 1"
(
ppr
(
ctl_depth
loc
)
$$
ppr
eqs
$$
ppr
(
isGivenLoc
loc
)
)
;
mapM_
(
unifyDerived
loc
Nominal
)
eqs
}
|
otherwise
=
do
{
traceTcS
"emitFunDepDeriveds 2"
(
ppr
(
ctl_depth
loc
)
$$
ppr
eqs
)
...
...
compiler/typecheck/TcRnTypes.hs
View file @
0f43d0db
...
...
@@ -96,7 +96,7 @@ module TcRnTypes(
bumpSubGoalDepth
,
subGoalDepthExceeded
,
CtLoc
(
..
),
ctLocSpan
,
ctLocEnv
,
ctLocLevel
,
ctLocOrigin
,
ctLocTypeOrKind_maybe
,
ctLocDepth
,
bumpCtLocDepth
,
ctLocDepth
,
bumpCtLocDepth
,
isGivenLoc
,
setCtLocOrigin
,
updateCtLocOrigin
,
setCtLocEnv
,
setCtLocSpan
,
CtOrigin
(
..
),
exprCtOrigin
,
lexprCtOrigin
,
matchesCtOrigin
,
grhssCtOrigin
,
isVisibleOrigin
,
toInvisibleOrigin
,
...
...
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