@@ -827,7 +827,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
827827 -- so this doesn't lose anything)
828828 case getArgTys cwvaltyN of
829829 [] -> return ()
830− (_:_) -> ierror $ At fc (WithFnType cwvalty)
830+ (_:_) -> ierror $ At fc (WithFnType cwvalty)
831831
832832 let pvars = map fst (getPBtys cwvalty)
833833 -- 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)
897897 (map (pexp . (PRef fc) . fst) bargs_post) ++
898898 case mpn of
899899 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
903+ ])])
901904 logLvl 5 ("New RHS " ++ showTmImpls rhs)
902905 ctxt <- getContext -- New context with block added
903906 i <- getIState