[commit: ghc] master: Comments only (1cca442)

git at git.haskell.org git at git.haskell.org
Fri Aug 24 09:55:52 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1cca4423818399a640f11ab47219258700cce617/ghc

>---------------------------------------------------------------

commit 1cca4423818399a640f11ab47219258700cce617
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Aug 24 10:29:40 2018 +0100

    Comments only


>---------------------------------------------------------------

1cca4423818399a640f11ab47219258700cce617
 compiler/typecheck/TcRnTypes.hs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/compiler/typecheck/TcRnTypes.hs b/compiler/typecheck/TcRnTypes.hs
index 5a74587..41defc7 100644
--- a/compiler/typecheck/TcRnTypes.hs
+++ b/compiler/typecheck/TcRnTypes.hs
@@ -2943,7 +2943,9 @@ ctFlavourRole (CTyEqCan { cc_ev = ev, cc_eq_rel = eq_rel })
 ctFlavourRole (CFunEqCan { cc_ev = ev })
   = (ctEvFlavour ev, NomEq)
 ctFlavourRole (CHoleCan { cc_ev = ev })
-  = (ctEvFlavour ev, NomEq)
+  = (ctEvFlavour ev, NomEq)  -- NomEq: CHoleCans can be rewritten by
+                             -- by nominal equalities but empahatically
+                             -- not by representational equalities
 ctFlavourRole ct
   = ctEvFlavourRole (ctEvidence ct)
 



More information about the ghc-commits mailing list