@@ -817,9 +817,6 @@ elabClause info opts (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
817 logLvl 5 ("LHS: " ++ show fc ++ " " ++ showImp Nothing True False lhs)
817 logLvl 5 ("LHS: " ++ show fc ++ " " ++ showImp Nothing True False lhs)
818 logLvl 4 ("Fixed parameters: " ++ show params ++ " from " ++ show (fn_ty, fn_is))
818 logLvl 4 ("Fixed parameters: " ++ show params ++ " from " ++ show (fn_ty, fn_is))
820− addInternalApp (fc_fname fc) (fc_line fc) lhs
821− addIBC (IBCLineApp (fc_fname fc) (fc_line fc) lhs)
823 ((lhs', dlhs, []), _) <-
820 ((lhs', dlhs, []), _) <-
824 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
821 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
825 (errAt "left hand side of " fname
822 (errAt "left hand side of " fname
@@ -828,6 +825,10 @@ elabClause info opts (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
828 let lhs_ty = getInferType lhs'
825 let lhs_ty = getInferType lhs'
829 logLvl 3 ("Elaborated: " ++ show lhs_tm)
826 logLvl 3 ("Elaborated: " ++ show lhs_tm)
830 logLvl 3 ("Elaborated type: " ++ show lhs_ty)
827 logLvl 3 ("Elaborated type: " ++ show lhs_ty)
829+ addInternalApp (fc_fname fc) (fc_line fc) (delab i lhs_tm)
830+ addIBC (IBCLineApp (fc_fname fc) (fc_line fc) (delab i lhs_tm))
831 (clhs_c, clhsty) <- recheckC fc [] lhs_tm
832 (clhs_c, clhsty) <- recheckC fc [] lhs_tm
832 let clhs = normalise ctxt [] clhs_c
833 let clhs = normalise ctxt [] clhs_c
833 logLvl 5 ("Checked " ++ show clhs ++ "\n" ++ show clhsty)
834 logLvl 5 ("Checked " ++ show clhs ++ "\n" ++ show clhsty)