Skip to content

Commit

Permalink
Prettify output format
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Jun 23, 2024
1 parent 6b7be88 commit f80ea44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/BuildLib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ listTargets :: HasConfig e => ReaderT e IO ()
listTargets = do
res <- allGrp
liftIO $ putStrLn "Individual targets:"
liftIO $ putStrLn "-------------------"
liftIO $ putStr $ unlines res

-- XXX pass as arg?
Expand All @@ -150,6 +151,7 @@ listTargetGroups = do
grpTargets <- asks config_GROUP_TARGETS
let xs = Map.foldrWithKey (\k v b -> b ++ [pretty k v]) [] grpTargets
liftIO $ putStrLn "Benchmark groups:"
liftIO $ putStrLn "-----------------"
liftIO $ putStr $ unlines xs

where
Expand All @@ -159,6 +161,7 @@ listTargetGroups = do
listComparisons :: HasConfig e => ReaderT e IO ()
listComparisons = do
liftIO $ putStrLn "Comparison groups:"
liftIO $ putStrLn "------------------"
res <- asks config_COMPARISONS
let xs = Map.foldrWithKey (\k_ v_ b -> b ++ [pretty k_ v_]) [] res
liftIO $ putStr $ unlines xs
Expand Down

0 comments on commit f80ea44

Please sign in to comment.