Package Info


Efficient conversion of values into Text


'text-show' offers a replacement for the 'Show' typeclass intended for use with 'Text' instead of 'String's. 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:

' module Main where

import TextShow

main :: IO () main = printT (Just "Hello, World!") '

If you desire it, there are also monomorphic versions of the 'showb' function available in the submodules of "TextShow". See the < naming conventions> page for more information.

Support for automatically deriving 'TextShow' instances can be found in the "TextShow.TH" and "TextShow.Generic" modules.

License: BSD-3-Clause



Package Version Update ID Released Package Hub Version Platforms Subpackages
3.6-bp150.2.3 info GA Release 2018-08-01 15
  • AArch64
  • ghc-text-show
  • ghc-text-show-devel
3.6-bp150.2.8 info GA Release 2018-07-31 15
  • ppc64le
  • ghc-text-show
  • ghc-text-show-devel
3.6-bp150.2.7 info GA Release 2018-07-30 15
  • x86-64
  • ghc-text-show
  • ghc-text-show-devel