[commit: ghc] master: Comments only (8c1866a)

git at git.haskell.org git at git.haskell.org
Tue Oct 6 10:38:23 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8c1866adcb393d911e53214d39193de205ca6395/ghc

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

commit 8c1866adcb393d911e53214d39193de205ca6395
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Oct 2 08:39:26 2015 +0100

    Comments only


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

8c1866adcb393d911e53214d39193de205ca6395
 compiler/typecheck/TcMatches.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compiler/typecheck/TcMatches.hs b/compiler/typecheck/TcMatches.hs
index ebb7797..70afae4 100644
--- a/compiler/typecheck/TcMatches.hs
+++ b/compiler/typecheck/TcMatches.hs
@@ -890,6 +890,8 @@ tcApplicativeStmts ctxt pairs rhs_ty thing_inside
       ; let fun_ty = mkFunTys pat_tys body_ty
 
        -- NB. do the <$>,<*> operators first, we don't want type errors here
+       --     i.e. goOps before goArgs
+       -- See Note [Treat rebindable syntax first]
       ; let (ops, args) = unzip pairs
       ; ops' <- goOps fun_ty (zip3 ops (ts ++ [rhs_ty]) exp_tys)
 



More information about the ghc-commits mailing list