@@ -194,7 +194,6 @@ data IState = IState {
194 -- ^ list of lhs/rhs, and a list of missing clauses
194 -- ^ list of lhs/rhs, and a list of missing clauses
195 idris_flags :: Ctxt [FnOpt],
195 idris_flags :: Ctxt [FnOpt],
196 idris_callgraph :: Ctxt CGInfo, -- name, args used in each pos
196 idris_callgraph :: Ctxt CGInfo, -- name, args used in each pos
197− idris_calledgraph :: Ctxt [Name],
198 idris_docstrings :: Ctxt (Docstring DocTerm, [(Name, Docstring DocTerm)]),
197 idris_docstrings :: Ctxt (Docstring DocTerm, [(Name, Docstring DocTerm)]),
199 idris_moduledocs :: Ctxt (Docstring DocTerm),
198 idris_moduledocs :: Ctxt (Docstring DocTerm),
200 -- ^ module documentation is saved in a special MN so the context
199 -- ^ module documentation is saved in a special MN so the context
@@ -280,11 +279,10 @@ deriving instance NFData SizeChange
280type SCGEntry = (Name, [Maybe (Int, SizeChange)])
279type SCGEntry = (Name, [Maybe (Int, SizeChange)])
281type UsageReason = (Name, Int) -- fn_name, its_arg_number
280type UsageReason = (Name, Int) -- fn_name, its_arg_number
283−data CGInfo = CGInfo { argsdef :: [Name],
282+data CGInfo = CGInfo { calls :: [Name],
284− calls :: [(Name, [[Name]])],
285 scg :: [SCGEntry],
283 scg :: [SCGEntry],
287− usedpos :: [(Int, [UsageReason])] }
284+ usedpos :: [(Int, [UsageReason])]
288 deriving Show
286 deriving Show
290deriving instance Binary CGInfo
288deriving instance Binary CGInfo
@@ -349,7 +347,7 @@ idrisInit = IState initContext S.empty []
349 emptyContext emptyContext emptyContext emptyContext
347 emptyContext emptyContext emptyContext emptyContext
350 emptyContext emptyContext emptyContext emptyContext
348 emptyContext emptyContext emptyContext emptyContext
351 emptyContext emptyContext emptyContext emptyContext
349 emptyContext emptyContext emptyContext emptyContext
352− emptyContext emptyContext
350+ emptyContext
353 [] [] [] defaultOpts 6 [] [] [] [] emptySyntaxRules [] [] [] [] [] [] []
351 [] [] [] defaultOpts 6 [] [] [] [] emptySyntaxRules [] [] [] [] [] [] []
354 [] [] Nothing [] Nothing [] [] Nothing Nothing [] Hidden False [] Nothing [] []
352 [] [] Nothing [] Nothing [] [] Nothing Nothing [] Hidden False [] Nothing [] []
355 (RawOutput stdout) True defaultTheme [] (0, emptyContext) emptyContext M.empty
353 (RawOutput stdout) True defaultTheme [] (0, emptyContext) emptyContext M.empty