left-justify arguments in benchmark summary

This commit is contained in:
Simon Michael 2008-11-27 06:29:46 +00:00
parent 2092ed85ae
commit cd41128620

View File

@ -115,9 +115,11 @@ summarise tests exes results = do
maketable :: [String] -> [String] -> [[[Float]]] -> Table String
maketable rownames colnames results = Table rowhdrs colhdrs rows
where
rowhdrs = Group NoLine $ map Header rownames
rowhdrs = Group NoLine $ map Header $ padright rownames
colhdrs = Group SingleLine $ map Header colnames
rows = map (map (showtime . minimum)) results
padright ss = map (printf (printf "%%-%ds" w)) ss
where w = maximum $ map length ss
showtime = printf $ "%."++(show precision)++"f"