RyanGlScott/text-show

Efficient conversion of values into Text

41

stars

356

commits

Haskell

primary language

Jul 10, 2026

updated

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.

Contributors

RyanGlScott

351 commits

andrewthad

2 commits

felixonmars

2 commits

torgeirsh

1 commits

RyanGlScott/text-show

Efficient conversion of values into Text

41

stars

356

commits

Haskell

primary language

Jul 10, 2026

updated

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.

Contributors

RyanGlScott

351 commits

andrewthad

2 commits

felixonmars

2 commits

torgeirsh

1 commits

Languages

Haskell

100.0%