@@ -699,7 +699,7 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
699 when (not (null defer)) $ logElab 1 $ "DEFERRED " ++
699 when (not (null defer)) $ logElab 1 $ "DEFERRED " ++
700 show (map (\ (n, (_,_,t,_)) -> (n, t)) defer)
700 show (map (\ (n, (_,_,t,_)) -> (n, t)) defer)
701 def' <- checkDef fc (\n -> Elaborating "deferred type of " n Nothing) defer
701 def' <- checkDef fc (\n -> Elaborating "deferred type of " n Nothing) defer
702− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
702+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
703 addDeferred def''
703 addDeferred def''
704 mapM_ (\(n, _) -> addIBC (IBCDef n)) def''
704 mapM_ (\(n, _) -> addIBC (IBCDef n)) def''
@@ -862,7 +862,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
862 sendHighlighting highlights
862 sendHighlighting highlights
864 def' <- checkDef fc iderr defer
864 def' <- checkDef fc iderr defer
865− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
865+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
866 addDeferred def''
866 addDeferred def''
867 mapM_ (elabCaseBlock info opts) is
867 mapM_ (elabCaseBlock info opts) is
868 logElab 5 ("Checked wval " ++ show wval')
868 logElab 5 ("Checked wval " ++ show wval')
@@ -927,7 +927,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
927 addIBC (IBCStatic wname)
927 addIBC (IBCStatic wname)
929 def' <- checkDef fc iderr [(wname, (-1, Nothing, wtype, []))]
929 def' <- checkDef fc iderr [(wname, (-1, Nothing, wtype, []))]
930− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
930+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
931 addDeferred def''
931 addDeferred def''
933 -- in the subdecls, lhs becomes:
933 -- in the subdecls, lhs becomes:
@@ -968,7 +968,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
968 sendHighlighting highlights
968 sendHighlighting highlights
970 def' <- checkDef fc iderr defer
970 def' <- checkDef fc iderr defer
971− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
971+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
972 addDeferred def''
972 addDeferred def''
973 mapM_ (elabCaseBlock info opts) is
973 mapM_ (elabCaseBlock info opts) is
974 logElab 5 ("Checked RHS " ++ show rhs')
974 logElab 5 ("Checked RHS " ++ show rhs')