The text-show package

[Tags:bsd3, library, test]

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:

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.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.4, 0.4.1, 0.5, 0.6, 0.6.0.1, 0.7, 0.7.0.1, 0.8, 0.8.1, 0.8.1.1, 1, 2, 2.1, 2.1.1, 2.1.2, 3, 3.0.1, 3.1, 3.2, 3.2.1, 3.2.2, 3.3, 3.4, 3.4.1, 3.4.1.1, 3.6
Change log CHANGELOG.md
Dependencies array (>=0.3 && <0.6), base (>=4.3 && <5), base-compat (>=0.8.1 && <1), bifunctors (>=5.1 && <6), bytestring (>=0.9 && <0.11), bytestring-builder, containers (>=0.1 && <0.6), contravariant (>=0.5 && <2), generic-deriving (>=1.11 && <2), ghc-boot-th (>=8.0 && <8.3), ghc-prim, integer-gmp, nats (>=0.1 && <2), semigroups (>=0.17 && <1), tagged (>=0.4.4 && <1), template-haskell (>=2.5 && <2.13), text (>=0.11.1 && <1.3), th-lift (>=0.7.6 && <1), transformers (>=0.2.1 && <0.6), transformers-compat (>=0.5 && <1), void (>=0.5 && <1) [details]
License BSD3
Copyright (C) 2014-2017 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
Category Text
Home page https://github.com/RyanGlScott/text-show
Bug tracker https://github.com/RyanGlScott/text-show/issues
Source repository head: git clone https://github.com/RyanGlScott/text-show
Uploaded Sun Apr 23 03:14:07 UTC 2017 by ryanglscott
Distributions Debian:2.1.1, LTSHaskell:3.4.1.1, NixOS:3.4.1.1, Stackage:3.4.1.1, Tumbleweed:3.4.1.1
Downloads 3793 total (412 in the last 30 days)
Votes
1 []
Status Docs available [build log]
Last success reported on 2017-04-23 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
developerOperate in developer mode (allows for faster recompilation of tests)DisabledManual
base-4-9Use base-4.9 or later.EnabledAutomatic
template-haskell-2-11Use template-haskell-2.11.0.0 or later.EnabledAutomatic
new-functor-classesUse a version of transformers or transformers-compat with a modern-style Data.Functor.Classes module. This flag cannot be used when building with transformers-0.4, since it comes with a different version of Data.Functor.Classes.EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for text-show

Readme for text-show-3.6

text-show

Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build

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:

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 Text.Show.Text. 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.