text-show offers a replacement for the Show typeclass intended
for use with Text instead of Strings. This package was created
in the spirit of
bytestring-show.
At the moment, text-show provides instances for most data
types in the array,
base,
bytestring, and
text packages.
Therefore, much of the source code for text-show consists of
borrowed code from those packages in order to ensure that the
behaviors of Show and TextShow coincide.
For most uses, simply importing TextShow
will suffice:
See also the
naming conventions
page.
Support for automatically deriving TextShow instances can be found
in the TextShow.TH and TextShow.Generic modules.