| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Hable.Style.Unicode
Documentation
data UnicodeStyle Source #
This module uses a style data type supporting normal, double and thick lines.
Instances
unicodeCharset :: BoxChar UnicodeStyle -> String Source #
charset. Unfortunately, there is not a Unicode box character for all
possible values of . In case of such an input, an error
is thrown.BoxChar Unicode
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.