[commit: ghc] wip/spj-improvement: Comments only (a67b20a)
git at git.haskell.org
git at git.haskell.org
Thu May 7 08:08:24 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/spj-improvement
Link : http://ghc.haskell.org/trac/ghc/changeset/a67b20a3d15fff00184978df1f98b0ee520a51a4/ghc
>---------------------------------------------------------------
commit a67b20a3d15fff00184978df1f98b0ee520a51a4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri May 1 15:51:10 2015 +0100
Comments only
>---------------------------------------------------------------
a67b20a3d15fff00184978df1f98b0ee520a51a4
compiler/typecheck/TcFlatten.hs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/compiler/typecheck/TcFlatten.hs b/compiler/typecheck/TcFlatten.hs
index 4c74ba9..09ed340 100644
--- a/compiler/typecheck/TcFlatten.hs
+++ b/compiler/typecheck/TcFlatten.hs
@@ -1576,6 +1576,11 @@ Consider f1 = (Given, ReprEq)
f2 = (Derived, NomEq)
f = (Derived, ReprEq)
+I thought maybe we could never get Derived ReprEq constraints, but
+we can; straight from the Wanteds during improvment. And from a Derived
+ReprEq we could conceivably get a Derived NomEq improvment (by decomposing
+a type constructor with Nomninal role), and hence unify.
+
Note [canRewriteOrSame]
~~~~~~~~~~~~~~~~~~~~~~~
canRewriteOrSame is similar but
More information about the ghc-commits
mailing list