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,262
Issues
4,262
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
404
Merge Requests
404
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
9d3bd3dc
Commit
9d3bd3dc
authored
Apr 21, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments only
parent
646866ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcFlatten.hs
+1
-1
compiler/typecheck/TcMType.hs
compiler/typecheck/TcMType.hs
+6
-1
No files found.
compiler/typecheck/TcFlatten.hs
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
...
...
compiler/typecheck/TcMType.hs
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
...
...
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