@@ -16,7 +16,7 @@ traceUnused :: Name -> Idris ()
1616traceUnused n
1717 = do i <- get
1818 case lookupCtxt Nothing n (idris_callgraph i) of
19− [CGInfo args calls usedns _] ->
19+ [CGInfo args calls scg usedns _] ->
2020 do let argpos = zip args [0..]
2121 let fargs = concatMap (getFargpos calls) argpos
2222 logLvl 3 $ show n ++ " used TRACE: " ++ show fargs
@@ -27,7 +27,7 @@ traceUnused n
2727 logLvl 1 $ show n ++ " used args: " ++ show fused
2828 let unusedpos = mapMaybe (getUnused fused) (zip [0..] args)
2929 logLvl 1 $ show n ++ " unused args: " ++ show (args, unusedpos)
30− addToCG n (CGInfo args calls usedns unusedpos) -- updates
30+ addToCG n (CGInfo args calls scg usedns unusedpos) -- updates
3131 _ -> return ()
3232 where
3333 getUnused fused (i,n) | n `elem` fused = Nothing
@@ -40,7 +40,7 @@ used path g j
4040 = do logLvl 5 $ (show ((g, j) : path))
4141 i <- get
4242 case lookupCtxt Nothing g (idris_callgraph i) of
43− [CGInfo args calls usedns unused] ->
43+ [CGInfo args calls scg usedns unused] ->
4444 if (j >= length args)
4545 then -- overapplied, assume used
4646 return True