@@ -733,7 +733,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
733733 -- Build the LHS as an "Infer", and pull out its type and
734734 -- pattern bindings
735735 i <- getIState
736− let lhs = addImpl i lhs_in
736+ let lhs = addImplPat i lhs_in
737737 logLvl 5 ("LHS: " ++ showImp True lhs)
738738 ((lhs', dlhs, []), _) <-
739739 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
@@ -831,18 +831,18 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
831831
832832 mkAux wname toplhs ns ns' (PClause fc n tm_in (w:ws) rhs wheres)
833833 = do i <- getIState
834− let tm = addImpl i tm_in
834+ let tm = addImplPat i tm_in
835835 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
836836 showImp True toplhs)
837837 case matchClause i toplhs tm of
838− Left _ -> fail $ show fc ++ "with clause does not match top level"
838+ Left f -> fail $ show fc ++ ":with clause does not match top level"
839839 Right mvars ->
840840 do logLvl 3 ("Match vars : " ++ show mvars)
841841 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
842842 return $ PClause fc wname lhs ws rhs wheres
843843 mkAux wname toplhs ns ns' (PWith fc n tm_in (w:ws) wval withs)
844844 = do i <- getIState
845− let tm = addImpl i tm_in
845+ let tm = addImplPat i tm_in
846846 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
847847 showImp True toplhs)
848848 withs' <- mapM (mkAuxC wname toplhs ns ns') withs