futhark-0.15.5: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.Util.Table

Description

Basic table building for prettier futhark-test output.

Synopsis

Documentation

buildTable :: [[Entry]] -> Int -> String Source #

Builds a table from a list of entries and a padding amount that determines padding from the right side of the widest entry in each column.

mkEntry :: String -> (String, [SGR]) Source #

Makes a table entry with the default SGR mode.

type Entry = (String, [SGR]) Source #

A table entry. Consists of the content as well a list of SGR commands to color/stylelize the entry.