@@ -817,9 +817,6 @@ elabClause info opts (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
817817 logLvl 5 ("LHS: " ++ show fc ++ " " ++ showImp Nothing True False lhs)
818818 logLvl 4 ("Fixed parameters: " ++ show params ++ " from " ++ show (fn_ty, fn_is))
819819
820− addInternalApp (fc_fname fc) (fc_line fc) lhs
821− addIBC (IBCLineApp (fc_fname fc) (fc_line fc) lhs)
822−
823820 ((lhs', dlhs, []), _) <-
824821 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
825822 (errAt "left hand side of " fname
@@ -828,6 +825,10 @@ elabClause info opts (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
828825 let lhs_ty = getInferType lhs'
829826 logLvl 3 ("Elaborated: " ++ show lhs_tm)
830827 logLvl 3 ("Elaborated type: " ++ show lhs_ty)
828+
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+
831832 (clhs_c, clhsty) <- recheckC fc [] lhs_tm
832833 let clhs = normalise ctxt [] clhs_c
833834 logLvl 5 ("Checked " ++ show clhs ++ "\n" ++ show clhsty)