Layout data in grids and pretty tables. Provides a lot of tools to get the cell formatting right (positional alignment, alignment on specific characters and limiting of cell width)..
BSD 3-Clause "New" or "Revised" License
37
stars
11
forks
source link
Multiple colors in a single cell are not supported #11
By using Formatted the user is able to use color in a single cell. However, composing snippets with different formatting instructions in a single cell is not supported.
The type should provide aCellinstance(possibly on top of aIsStringinstance).
The type should provide aMonoidinstance.
The most likely shape of this type is a rose tree.
It should also make sure that formatting instructions are not cleared or left out accidentally. This is also an issue with the Formatted type.
It could also make sense to implement this in a backend-agnostic manner. For example, introduce a type class for formatting instructions.
By using
Formatted
the user is able to use color in a single cell. However, composing snippets with different formatting instructions in a single cell is not supported.Cell
instance (possibly on top of aIsString
instance).Monoid
instance.It should also make sure that formatting instructions are not cleared or left out accidentally. This is also an issue with the
Formatted
type. It could also make sense to implement this in a backend-agnostic manner. For example, introduce a type class for formatting instructions.