@@ -648,9 +648,9 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
648 -- Now build the RHS, using the type of the LHS as the goal.
648 -- Now build the RHS, using the type of the LHS as the goal.
649 i <- getIState -- new implicits from where block
649 i <- getIState -- new implicits from where block
650 logLvl 5 (showTmImpls (expandParams decorate newargs defs (defs \\ decls) rhs_in))
650 logLvl 5 (showTmImpls (expandParams decorate newargs defs (defs \\ decls) rhs_in))
651− let rhs = addImplBoundInf i (map fst newargs) (defs \\ decls)
651+ let rhs = addImplBoundInf i (map fst newargs_all) (defs \\ decls)
652 (expandParams decorate newargs defs (defs \\ decls) rhs_in)
652 (expandParams decorate newargs defs (defs \\ decls) rhs_in)
653− logLvl 2 $ "RHS: " ++ showTmImpls rhs
653+ logLvl 2 $ "RHS: " ++ show (map fst newargs_all) ++ " " ++ showTmImpls rhs
654 ctxt <- getContext -- new context with where block added
654 ctxt <- getContext -- new context with where block added
655 logLvl 5 "STARTING CHECK"
655 logLvl 5 "STARTING CHECK"
656 ((rhs', defer, is, probs), _) <-
656 ((rhs', defer, is, probs), _) <-
@@ -673,7 +673,7 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
673 when inf $ addTyInfConstraints fc (map (\(x,y,_,_,_,_,_) -> (x,y)) probs)
673 when inf $ addTyInfConstraints fc (map (\(x,y,_,_,_,_,_) -> (x,y)) probs)
675 logLvl 5 "DONE CHECK"
675 logLvl 5 "DONE CHECK"
676− logLvl 2 $ "---> " ++ show rhs'
676+ logLvl 4 $ "---> " ++ show rhs'
677 when (not (null defer)) $ iLOG $ "DEFERRED " ++
677 when (not (null defer)) $ iLOG $ "DEFERRED " ++
678 show (map (\ (n, (_,_,t)) -> (n, t)) defer)
678 show (map (\ (n, (_,_,t)) -> (n, t)) defer)
679 def' <- checkDef fc defer
679 def' <- checkDef fc defer