About

Metadata

  • Last updated , by ryanglscott
  • License BSD-3-Clause
  • Categories Text Processing
  • Maintained by: Ryan Scott <ryan.gl.scott@gmail.com>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.3
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4
  12. 8.2.2
  13. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    integer-gmp (on by default)

    When building with a version of GHC older than 9.0, depend on the integer-gmp library. You can disable this if you do not wish to link against GMP, but at the expense of having a slower TextShow Natural instance.

Readme

text-show

Hackage Haskell Programming Language BSD3 License Build Status

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.

For most uses, simply importing TextShow will suffice:

module Main where

import TextShow

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

See also the naming conventions page.

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

Scope of the library

text-show only provides instances for data types in the following packages:

This policy is in place to keep text-show's dependencies reasonably light. If you need a TextShow instance for a library that is not in this list, it may be covered by the text-show-instances library.