[commit: ghc] master: Comments only (1013194)

git at git.haskell.org git at git.haskell.org
Thu May 25 10:59:32 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/10131947b212770c837035f042a11c024cf0ec67/ghc

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

commit 10131947b212770c837035f042a11c024cf0ec67
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu May 25 09:59:09 2017 +0100

    Comments only


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

10131947b212770c837035f042a11c024cf0ec67
 compiler/typecheck/TcCanonical.hs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/compiler/typecheck/TcCanonical.hs b/compiler/typecheck/TcCanonical.hs
index f533750..5dddd5d 100644
--- a/compiler/typecheck/TcCanonical.hs
+++ b/compiler/typecheck/TcCanonical.hs
@@ -1297,10 +1297,9 @@ representational equality, this is a little subtler. Once again, (a ~R [a])
 is a bad thing, but (a ~R N a) for a newtype N might be just fine. This
 means also that (a ~ b a) might be fine, because `b` might become a newtype.
 
-So, we must check: does tv1 appear in xi2 under any type constructor that
-is generative w.r.t. representational equality? That's what isTyVarUnderDatatype
-does. (The other name I considered, isTyVarUnderTyConGenerativeWrtReprEq was
-a bit verbose. And the shorter name gets the point across.)
+So, we must check: does tv1 appear in xi2 under any type constructor
+that is generative w.r.t. representational equality? That's what
+isInsolubleOccursCheck does.
 
 See also #10715, which induced this addition.
 



More information about the ghc-commits mailing list