hable-0.3.0: customizable pretty printer library for tables

Safe HaskellSafe
LanguageHaskell2010

Hable.Style.Unicode

Synopsis

Documentation

data UnicodeStyle Source #

This module uses a style data type supporting normal, double and thick lines.

Constructors

Normal 
Double 
Thick 

unicodeCharset :: BoxChar UnicodeStyle -> String Source #

charset. Unfortunately, there is not a Unicode box character for all possible values of BoxChar Unicode. In case of such an input, an error is thrown.

If you'd prefer an alternative behavior in that case, use maybeUnicodeCharset.

An example output:

>>> putStr (hable myConfig myTable)
╒══════════════════════╤════════════════════════════════════════════════╕
│ Name                 │ Hable                                          │
╞══════════════════════╪════════════════════════════════════════════════╡
│ Synopsis             │ customizable pretty printer library for tables │
│ License              │ Public Domain / Unlicense                      │
└──────────────────────┴────────────────────────────────────────────────┘

maybeUnicodeCharset :: BoxChar UnicodeStyle -> Maybe String Source #

Maybe returns a character representing the given BoxChar with Unicode box characters.