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
69adb253
Commit
69adb253
authored
5 years ago
by
Richard Eisenberg
Committed by
Marge Bot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix #16870 by improving documentation (only)
parent
9372ff92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/types/CoAxiom.hs
+1
-5
1 addition, 5 deletions
compiler/types/CoAxiom.hs
compiler/types/TyCoRep.hs
+3
-1
3 additions, 1 deletion
compiler/types/TyCoRep.hs
with
4 additions
and
6 deletions
compiler/types/CoAxiom.hs
+
1
−
5
View file @
69adb253
...
...
@@ -231,7 +231,6 @@ data CoAxBranch
-- in TcTyClsDecls
,
cab_roles
::
[
Role
]
-- See Note [CoAxBranch roles]
,
cab_lhs
::
[
Type
]
-- Type patterns to match against
-- See Note [CoAxiom saturation]
,
cab_rhs
::
Type
-- Right-hand side of the equality
,
cab_incomps
::
[
CoAxBranch
]
-- The previous incompatible branches
-- See Note [Storing compatibility]
...
...
@@ -310,10 +309,7 @@ coAxBranchIncomps = cab_incomps
placeHolderIncomps
::
[
CoAxBranch
]
placeHolderIncomps
=
panic
"placeHolderIncomps"
{- Note [CoAxiom saturation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* When co
{-
Note [CoAxBranch type variables]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the case of a CoAxBranch of an associated type-family instance,
...
...
This diff is collapsed.
Click to expand it.
compiler/types/TyCoRep.hs
+
3
−
1
View file @
69adb253
...
...
@@ -1193,13 +1193,15 @@ data Coercion
|
CoVarCo
CoVar
-- :: _ -> (N or R)
-- result role depends on the tycon of the variable's type
-- AxiomInstCo :: e -> _ ->
[N]
-> e
-- AxiomInstCo :: e -> _ ->
??
-> e
|
AxiomInstCo
(
CoAxiom
Branched
)
BranchIndex
[
Coercion
]
-- See also [CoAxiom index]
-- The coercion arguments always *precisely* saturate
-- arity of (that branch of) the CoAxiom. If there are
-- any left over, we use AppCo.
-- See [Coercion axioms applied to coercions]
-- The roles of the argument coercions are determined
-- by the cab_roles field of the relevant branch of the CoAxiom
|
AxiomRuleCo
CoAxiomRule
[
Coercion
]
-- AxiomRuleCo is very like AxiomInstCo, but for a CoAxiomRule
...
...
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