[commit: ghc] master: Comments only (243e2ab)

git at git.haskell.org git at git.haskell.org
Tue Mar 1 17:28:07 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/243e2abb3d50b73ede06f5302e51ba804a9321ec/ghc

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

commit 243e2abb3d50b73ede06f5302e51ba804a9321ec
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Feb 29 14:16:18 2016 +0000

    Comments only


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

243e2abb3d50b73ede06f5302e51ba804a9321ec
 compiler/typecheck/TcCanonical.hs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compiler/typecheck/TcCanonical.hs b/compiler/typecheck/TcCanonical.hs
index 2da3153..a5fd412 100644
--- a/compiler/typecheck/TcCanonical.hs
+++ b/compiler/typecheck/TcCanonical.hs
@@ -866,12 +866,13 @@ can_eq_app ev NomEq s1 t1 s2 t2
 
 -----------------------
 -- | Break apart an equality over a casted type
+-- looking like   (ty1 |> co1) ~ ty2   (modulo a swap-flag)
 canEqCast :: Bool         -- are both types flat?
           -> CtEvidence
           -> EqRel
           -> SwapFlag
-          -> TcType -> Coercion   -- LHS (res. RHS), the casted type
-          -> TcType -> TcType     -- RHS (res. LHS), both normal and pretty
+          -> TcType -> Coercion   -- LHS (res. RHS), ty1 |> co1
+          -> TcType -> TcType     -- RHS (res. LHS), ty2 both normal and pretty
           -> TcS (StopOrContinue Ct)
 canEqCast flat ev eq_rel swapped ty1 co1 ty2 ps_ty2
   = do { traceTcS "Decomposing cast" (vcat [ ppr ev



More information about the ghc-commits mailing list