Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module might be useful to understand the Hable's indexing of vertical and horizontal lines and maybe also to debug them.
It offers a style, called LineIndexStyle
which is a simple type synonym for
Integer
. This style is used to print the last digit of vertical line index
(see vLineIndexcharset
) or horizontal line index (see hLineIndexCharset
).
Documentation
type LineIndexStyle = Integer Source #
vLineIndexCharset :: BoxChar LineIndexStyle -> String Source #
Usage example:
>>>
putStr (hable defaultConfig { charset = vLineIndexCharset, vLineStyle = const Just, hLineStyle = const Just } [["foo","bar"],["baz","qux"]])
1-----2-----3 1 foo 2 bar 3 1-----2-----3 1 baz 2 qux 3 1-----2-----3
hLineIndexCharset :: BoxChar LineIndexStyle -> String Source #
Usage example:
>>>
putStr (hable defaultConfig { charset = hLineIndexCharset, vLineStyle = const Just, hLineStyle = const Just } [["foo","bar"],["baz","qux"]])
1111111111111 | foo | bar | 2222222222222 | baz | qux | 3333333333333