Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Michael Sloan
GHC
Commits
3eaa55dc
Commit
3eaa55dc
authored
Mar 11, 2018
by
Richard Eisenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply Note [EtaAppCo] in OptCoercion to another case
parent
ef443820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
compiler/types/OptCoercion.hs
compiler/types/OptCoercion.hs
+2
-3
No files found.
compiler/types/OptCoercion.hs
View file @
3eaa55dc
...
...
@@ -577,9 +577,8 @@ opt_trans_rule is in_co1@(FunCo r1 co1a co1b) in_co2@(FunCo r2 co2a co2b)
mkFunCo
r1
(
opt_trans
is
co1a
co2a
)
(
opt_trans
is
co1b
co2b
)
opt_trans_rule
is
in_co1
@
(
AppCo
co1a
co1b
)
in_co2
@
(
AppCo
co2a
co2b
)
=
fireTransRule
"TrPushApp"
in_co1
in_co2
$
mkAppCo
(
opt_trans
is
co1a
co2a
)
(
opt_trans
is
co1b
co2b
)
-- Must call opt_trans_rule_app; see Note [EtaAppCo]
=
opt_trans_rule_app
is
in_co1
in_co2
co1a
[
co1b
]
co2a
[
co2b
]
-- Eta rules
opt_trans_rule
is
co1
@
(
TyConAppCo
r
tc
cos1
)
co2
...
...
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