Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Futhark.Util.Table
Description
Basic table building for prettier futhark-test output.
Documentation
hPutTable :: Handle -> [[Entry]] -> Int -> IO () Source #
Produce 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.
Render the annotated document in a certain style. Styles not set in the annotation will use the style of the surrounding document, or the terminal’s default if none has been set yet.
style =color
Green
<>
bold
styledDoc =annotate
style "hello world"
Instances
IsString Fmt Source # | |
Defined in Futhark.Fmt.Monad Methods fromString :: String -> Fmt # | |
Monoid Fmt Source # | |
Monoid AnsiStyle |
|
Semigroup Fmt Source # | |
Semigroup AnsiStyle | Keep the first decision for each of foreground color, background color, boldness, italication, and underlining. If a certain style is not set, the terminal’s default will be used. Example:
is red because the first color wins, and not bold because (or if) that’s the terminal’s default. |
Show AnsiStyle | |
Eq AnsiStyle | |
Ord AnsiStyle | |
Defined in Prettyprinter.Render.Terminal.Internal |