Skip to content

Commit abf4ca0

Browse files
committed
Fix a warning
1 parent 8097b03 commit abf4ca0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Stack/Dot.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ listDependencies opts = do
151151
where go name payload = liftIO $ Text.putStrLn $ listDepsLine opts name payload
152152

153153
treeRoots :: ListDepsOpts -> Set PackageName -> Set PackageName
154-
treeRoots opts projectPackages = let targets = dotTargets $ listDepsDotOpts opts
155-
in if null targets
156-
then projectPackages
157-
else Set.fromList $ map (mkPackageName . Text.unpack) targets
154+
treeRoots opts projectPackages' =
155+
let targets = dotTargets $ listDepsDotOpts opts
156+
in if null targets
157+
then projectPackages'
158+
else Set.fromList $ map (mkPackageName . Text.unpack) targets
158159

159160
printTree :: ListDepsOpts
160161
-> Int

0 commit comments

Comments
 (0)