Skip to content

Commit 27d94c3

Browse files
committed
Statistics.hs: future-proof range of versions of base
1 parent 947ae1e commit 27d94c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Statistics.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ main = do
245245
putStrLn $ "Most active:\n\t" ++ show (round (statMaxMetric allComments)) ++ " comments for " ++ show (issTitle (statMaxIssue allComments))
246246
putStrLn ""
247247

248-
forM_ [16 .. 21] $ \n ->
249-
putStrLn $ "Released in base-4." ++ show n ++ ": " ++ show (length (filter (isBase n) approvedProposals))
248+
forM_ [0 .. 99] $ \n -> do
249+
let releasedInVersion = length (filter (isBase n) approvedProposals)
250+
when (releasedInVersion > 0) $
251+
putStrLn $ "Released in base-4." ++ show n ++ ": " ++ show releasedInVersion
250252
putStrLn ""
251253

252254
let openProposals = filter (isNothing . issClosedAt) proposals

0 commit comments

Comments
 (0)