@@ -626,7 +626,9 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
626 Left _ -> fail $ show fc ++ "with clause does not match top level"
626 Left _ -> fail $ show fc ++ "with clause does not match top level"
627 Right mvars -> do lhs <- updateLHS n wname mvars ns (fullApp tm) w
627 Right mvars -> do lhs <- updateLHS n wname mvars ns (fullApp tm) w
628 return $ PWith fc wname lhs ws wval withs'
628 return $ PWith fc wname lhs ws wval withs'
629−
629+ mkAux wname toplhs ns c
630+ = fail $ show fc ++ "badly formed with clause"
630 updateLHS n wname mvars ns (PApp fc (PRef fc' n') args) w
632 updateLHS n wname mvars ns (PApp fc (PRef fc' n') args) w
631 = let ns' = map (keepMvar (map fst mvars) fc') ns in
633 = let ns' = map (keepMvar (map fst mvars) fc') ns in
632 return $ substMatches mvars $
634 return $ substMatches mvars $