@@ -53,7 +53,7 @@ data DotOpts = DotOpts
5353 -- ^ Include dependencies on base
5454 , dotDependencyDepth :: ! (Maybe Int )
5555 -- ^ Limit the depth of dependency resolution to (Just n) or continue until fixpoint
56- , dotPrune :: ! (Set String )
56+ , dotPrune :: ! (Set PackageName )
5757 -- ^ Package names to prune from the graph
5858 , dotTargets :: [Text ]
5959 -- ^ stack TARGETs to trace dependencies for
@@ -215,14 +215,14 @@ payloadText opts payload =
215215-- unless they are in @dontPrune@
216216pruneGraph :: (F. Foldable f , F. Foldable g , Eq a )
217217 => f PackageName
218- -> g String
218+ -> g PackageName
219219 -> Map PackageName (Set PackageName , a )
220220 -> Map PackageName (Set PackageName , a )
221221pruneGraph dontPrune names =
222222 pruneUnreachable dontPrune . Map. mapMaybeWithKey (\ pkg (pkgDeps,x) ->
223- if packageNameString pkg `F.elem` names
223+ if pkg `F.elem` names
224224 then Nothing
225- else let filtered = Set. filter (\ n -> packageNameString n `F.notElem` names) pkgDeps
225+ else let filtered = Set. filter (\ n -> n `F.notElem` names) pkgDeps
226226 in if Set. null filtered && not (Set. null pkgDeps)
227227 then Nothing
228228 else Just (filtered,x))
@@ -342,7 +342,7 @@ printGraph dotOpts locals graph = do
342342 void (Map. traverseWithKey printEdges (fst <$> graph))
343343 liftIO $ Text. putStrLn " }"
344344 where filteredLocals = Set. filter (\ local' ->
345- packageNameString local' `Set.notMember` dotPrune dotOpts) locals
345+ local' `Set.notMember` dotPrune dotOpts) locals
346346
347347-- | Print the local nodes with a different style depending on options
348348printLocalNodes :: (F. Foldable t , MonadIO m )
0 commit comments