futhark-0.25.15: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.Util.Table

Description

Basic table building for prettier futhark-test output.

Synopsis

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.

mkEntry :: String -> AnsiStyle -> Entry Source #

Makes a table entry.

data Entry Source #

A table entry. Consists of the content as well as how it should be styled..

data Color #

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

Instances

Instances details
Show Color 
Instance details

Defined in Prettyprinter.Render.Terminal.Internal

Eq Color 
Instance details

Defined in Prettyprinter.Render.Terminal.Internal

Methods

(==) :: Color -> Color -> Bool Source #

(/=) :: Color -> Color -> Bool Source #

Ord Color 
Instance details

Defined in Prettyprinter.Render.Terminal.Internal