@hackage text-show3.11.3
Efficient conversion of values into Text
Categories
License
BSD-3-Clause
Maintainer
Ryan Scott <ryan.gl.scott@gmail.com>
Links
Versions
Installation
Tested Compilers
Dependencies (12)
- array >=0.3 && <0.6
- base >=4.9 && <4.23
- base-compat-batteries >=0.11 && <0.16
- bifunctors >=5.1 && <6
- bytestring >=0.10.8.1 && <0.13
- containers >=0.1 && <0.9 Show all…
Dependents (70)
@hackage/dojang, @hackage/minecraft-data, @hackage/fb-util, @hackage/blosum, @hackage/dwarf-el, @hackage/consumers, Show all…
Package 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.
text-show
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.