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
ed4a2289
Commit
ed4a2289
authored
Apr 22, 2016
by
niteria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos: alpah -> alpha
parent
6ad2b42f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
compiler/typecheck/TcHsSyn.hs
compiler/typecheck/TcHsSyn.hs
+1
-1
compiler/typecheck/TcSimplify.hs
compiler/typecheck/TcSimplify.hs
+1
-1
testsuite/tests/indexed-types/should_compile/IndTypesPerfMerge.hs
...e/tests/indexed-types/should_compile/IndTypesPerfMerge.hs
+2
-2
No files found.
compiler/typecheck/TcHsSyn.hs
View file @
ed4a2289
...
...
@@ -1618,7 +1618,7 @@ quantify over them. Example:
{-# RULES "myrule" foo C = 1 #-}
After type checking the LHS becomes (foo alpha (C alp
ah
)) and we do
After type checking the LHS becomes (foo alpha (C alp
ha
)) and we do
not want to zap the unbound meta-tyvar 'alpha' to Any, because that
limits the applicability of the rule. Instead, we want to quantify
over it!
...
...
compiler/typecheck/TcSimplify.hs
View file @
ed4a2289
...
...
@@ -1850,7 +1850,7 @@ Which equalities should we float? We want to float ones where there
is a decent chance that floating outwards will allow unification to
happen. In particular:
Float out equalities of form (alp
a
ha ~ ty) or (ty ~ alpha), where
Float out equalities of form (alpha ~ ty) or (ty ~ alpha), where
* alpha is a meta-tyvar.
...
...
testsuite/tests/indexed-types/should_compile/IndTypesPerfMerge.hs
View file @
ed4a2289
...
...
@@ -86,8 +86,8 @@ Another solve path:
ty := beta
gamma := MergerType alpha beta
UnmergedLeft (MergerType alp
ah
beta) ~ alpha
UnmergedRight (MergerType alp
ah
beta) ~ beta
UnmergedLeft (MergerType alp
ha
beta) ~ alpha
UnmergedRight (MergerType alp
ha
beta) ~ beta
Merger (MergerType alpha beta)
Mergeable alpha beta
...
...
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