@@ -1054,7 +1054,10 @@ loadSource h lidr f
1054 -- Redo totality check for deferred names
1054 -- Redo totality check for deferred names
1055 let deftots = idris_defertotcheck i
1055 let deftots = idris_defertotcheck i
1056 iLOG $ "Totality checking " ++ show deftots
1056 iLOG $ "Totality checking " ++ show deftots
1057+ mapM_ (\x -> do tot <- getTotality x
1057− mapM_ (\x -> setTotality x Unchecked) (map snd deftots)
1059+ Total _ -> setTotality x Unchecked
1060+ _ -> return ()) (map snd deftots)
1058 mapM_ buildSCG deftots
1061 mapM_ buildSCG deftots
1059 mapM_ checkDeclTotality deftots
1062 mapM_ checkDeclTotality deftots