Commit f5e10f09 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Add toMap to SolverInstallPlan.



Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent c171c78f
......@@ -25,6 +25,7 @@ module Distribution.Client.SolverInstallPlan(
-- * Operations on 'SolverInstallPlan's
new,
toList,
toMap,
remove,
......@@ -143,6 +144,9 @@ new indepGoals index =
toList :: SolverInstallPlan -> [SolverPlanPackage]
toList = Graph.toList . planIndex
toMap :: SolverInstallPlan -> Map SolverId SolverPlanPackage
toMap = Graph.toMap . planIndex
-- | Remove packages from the install plan. This will result in an
-- error if there are remaining packages that depend on any matching
-- package. This is primarily useful for obtaining an install plan for
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment