Skip to content

Commit a89b6a7

Browse files
committed
list: output to stdout
That was pretty bad - I had implemented list to log its output
1 parent 29a8c9f commit a89b6a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Stack/List.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Stack.List
88
) where
99

1010
import Pantry ( loadSnapshot )
11+
import qualified RIO.ByteString.Lazy as Lazy
1112
import qualified RIO.Map as Map
1213
import RIO.Process ( HasProcessContext )
1314
import Stack.Config ( makeConcreteResolver )
@@ -56,7 +57,7 @@ listPackages mSnapshot input = do
5657
case errs1 ++ errs2 of
5758
[] -> pure ()
5859
errs -> prettyThrowM $ CouldNotParsePackageSelectors errs
59-
mapM_ (prettyInfo . fromString . packageIdentifierString) locs
60+
mapM_ (Lazy.putStrLn . fromString . packageIdentifierString) locs
6061
where
6162
toLoc | Just snapshot <- mSnapshot = toLocSnapshot snapshot
6263
| otherwise = toLocNoSnapshot

0 commit comments

Comments
 (0)