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
Container 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
gershomb
GHC
Commits
9d3bd3dc
Commit
9d3bd3dc
authored
9 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
Comments only
parent
646866ff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/typecheck/TcFlatten.hs
+1
-1
1 addition, 1 deletion
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcMType.hs
+6
-1
6 additions, 1 deletion
compiler/typecheck/TcMType.hs
with
7 additions
and
2 deletions
compiler/typecheck/TcFlatten.hs
+
1
−
1
View file @
9d3bd3dc
...
...
@@ -1744,7 +1744,7 @@ Note [Unflatten using funeqs first]
[W] F (G a) ~ G a
do not want to end up with
[W
}
F Int ~ Int
[W
]
F Int ~ Int
because that might actually hold! Better to end up with the two above
unsolved constraints. The flat form will be
...
...
This diff is collapsed.
Click to expand it.
compiler/typecheck/TcMType.hs
+
6
−
1
View file @
9d3bd3dc
...
...
@@ -454,11 +454,16 @@ tcInstTyVarX subst tyvar
=
do
{
uniq
<-
newUnique
;
details
<-
newMetaDetails
(
TauTv
False
)
;
let
name
=
mkSystemName
uniq
(
getOccName
tyvar
)
-- See Note [Name of an instantiated type variable]
kind
=
substTy
subst
(
tyVarKind
tyvar
)
new_tv
=
mkTcTyVar
name
kind
details
;
return
(
extendTvSubst
subst
tyvar
(
mkTyVarTy
new_tv
),
new_tv
)
}
{-
{- Note [Name of an instantiated type variable]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At the moment we give a unification variable a System Name, which
influences the way it is tidied; see TypeRep.tidyTyVarBndr.
************************************************************************
* *
Quantification
...
...
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