@@ -58,8 +58,13 @@ type Vars = Map Name Var
5858type PatVar = Ctors -> Var
5959type PatVars = Map Name PatVar
6060
61−buildDepMap :: Context -> Ctxt CGInfo -> [Name] -> DepMap
62−buildDepMap ctx cg ns = dfs M.empty ns
61+minimalUsage :: DepMap -> UseMap
62+minimalUsage dmap = undefined
63+
64+-- Build the dependency graph,
65+-- starting the depth-first search from a list of Names.
66+buildDepMap :: Context -> [Name] -> DepMap
67+buildDepMap ctx ns = dfs M.empty ns
6368 where
6469 -- perform depth-first search
6570 -- to discover all the names used in the program