@@ -52,7 +52,7 @@ minimalUsage = gather . forwardChain
5252forwardChain :: Deps -> Set Node
5353forwardChain deps
5454 | Just trivials <- M.lookup S.empty deps
55− = trivials `S.union` forwardChain (remove trivials deps)
55+ = trivials `S.union` forwardChain (remove trivials . M.delete S.empty $ deps)
5656 | otherwise = S.empty
5757 where
5858 -- Remove the given nodes from the Deps entirely,