diff --git a/app/ghcup/GHCup/OptParse/List.hs b/app/ghcup/GHCup/OptParse/List.hs index 0b1c5ff..d1bfc65 100644 --- a/app/ghcup/GHCup/OptParse/List.hs +++ b/app/ghcup/GHCup/OptParse/List.hs @@ -143,7 +143,7 @@ printListResult no_color raw lr = do ) $ lr let cols = - foldr (\xs ys -> zipWith (:) xs ys) (cycle [[]]) rows + foldr (\xs ys -> zipWith (:) xs ys) (repeat []) rows lengths = fmap (maximum . fmap strWidth) cols padded = fmap (\xs -> zipWith padTo xs lengths) rows