Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
3c916162
Commit
3c916162
authored
5 years ago
by
Richard Eisenberg
Committed by
Marge Bot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update Note references -- comments only
Follow-on from !2041.
parent
182b1199
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/types/Unify.hs
+2
-2
2 additions, 2 deletions
compiler/types/Unify.hs
with
2 additions
and
2 deletions
compiler/types/Unify.hs
+
2
−
2
View file @
3c916162
...
...
@@ -962,7 +962,7 @@ unify_ty env ty1 ty2 kco
|
Just
ty2'
<-
tcView
ty2
=
unify_ty
env
ty1
ty2'
kco
|
CastTy
ty1'
co
<-
ty1
=
if
um_unif
env
then
unify_ty
env
ty1'
ty2
(
co
`
mkTransCo
`
kco
)
else
-- See Note [Matching in the presence of casts]
else
-- See Note [Matching in the presence of casts
(1)
]
do
{
subst
<-
getSubst
env
;
let
co'
=
substCo
subst
co
;
unify_ty
env
ty1'
ty2
(
co'
`
mkTransCo
`
kco
)
}
...
...
@@ -1422,7 +1422,7 @@ ty_co_match menv subst ty co lkco rkco
ty_co_match
menv
subst
ty
co
lkco
rkco
|
CastTy
ty'
co'
<-
ty
-- See Note [Matching in the presence of casts]
-- See Note [Matching in the presence of casts
(1)
]
=
let
empty_subst
=
mkEmptyTCvSubst
(
rnInScopeSet
(
me_env
menv
))
substed_co_l
=
substCo
(
liftEnvSubstLeft
empty_subst
subst
)
co'
substed_co_r
=
substCo
(
liftEnvSubstRight
empty_subst
subst
)
co'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment