@@ -827,7 +827,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
827 -- so this doesn't lose anything)
827 -- so this doesn't lose anything)
828 case getArgTys cwvaltyN of
828 case getArgTys cwvaltyN of
829 [] -> return ()
829 [] -> return ()
830− (_:_) -> ierror $ At fc (WithFnType cwvalty)
830+ (_:_) -> ierror $ At fc (WithFnType cwvalty)
832 let pvars = map fst (getPBtys cwvalty)
832 let pvars = map fst (getPBtys cwvalty)
833 -- we need the unelaborated term to get the names it depends on
833 -- we need the unelaborated term to get the names it depends on
@@ -897,7 +897,10 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
897 (map (pexp . (PRef fc) . fst) bargs_post) ++
897 (map (pexp . (PRef fc) . fst) bargs_post) ++
898 case mpn of
898 case mpn of
899 Nothing -> []
899 Nothing -> []
900− Just _ -> [pexp (PRef fc eqCon)])
900+ Just _ -> [pexp (PApp NoFC (PRef NoFC eqCon)
901+ [ pimp (sUN "A") Placeholder False
902+ , pimp (sUN "x") Placeholder False
901 logLvl 5 ("New RHS " ++ showTmImpls rhs)
904 logLvl 5 ("New RHS " ++ showTmImpls rhs)
902 ctxt <- getContext -- New context with block added
905 ctxt <- getContext -- New context with block added
903 i <- getIState
906 i <- getIState