text-show: 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!")
See also the naming conventions page.
Support for automatically deriving TextShow
instances can be found
in the TextShow.TH and TextShow.Generic modules.
[Skip to Readme]
Modules
[Index] [Quick Jump]
- TextShow
- Control
- Data
- TextShow.Data.Array
- TextShow.Data.Bool
- TextShow.Data.ByteString
- TextShow.Data.Char
- TextShow.Data.Complex
- TextShow.Data.Data
- TextShow.Data.Dynamic
- TextShow.Data.Either
- TextShow.Data.Fixed
- TextShow.Data.Floating
- Functor
- TextShow.Data.Integral
- TextShow.Data.List
- TextShow.Data.Maybe
- TextShow.Data.Monoid
- TextShow.Data.OldTypeable
- TextShow.Data.Ord
- TextShow.Data.Proxy
- TextShow.Data.Ratio
- TextShow.Data.Semigroup
- TextShow.Data.Text
- TextShow.Data.Tuple
- Type
- TextShow.Data.Typeable
- TextShow.Data.Version
- TextShow.Data.Void
- Debug
- Foreign
- TextShow.Functions
- GHC
- TextShow.Generic
- Numeric
- System
- TextShow.TH
- Text
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
base-4-9 | Use base-4.9 or later. | Enabled |
template-haskell-2-11 | Use template-haskell-2.11.0.0 or later. | Enabled |
new-functor-classes | Use 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. | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- text-show-3.9.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 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, 3.6.2, 3.7, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.8, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.9, 3.9.1, 3.9.2, 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 3.10, 3.10.1, 3.10.2, 3.10.3, 3.10.4, 3.10.5, 3.11 |
---|---|
Change log | CHANGELOG.md |
Dependencies | array (>=0.3 && <0.6), base (>=4.7 && <4.17), base-compat-batteries (>=0.11 && <0.13), bifunctors (>=5.1 && <6), bytestring (>=0.9 && <0.12), bytestring-builder, containers (>=0.1 && <0.7), generic-deriving (>=1.14.1 && <2), ghc-boot-th (>=8.0 && <9.3), ghc-prim, integer-gmp, template-haskell (>=2.9 && <2.19), text (>=0.11.1 && <2.1), th-abstraction (>=0.4 && <0.5), th-lift (>=0.7.6 && <1), transformers (>=0.2.1 && <0.6), transformers-compat (>=0.5 && <1) [details] |
License | BSD-3-Clause |
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 repo | head: git clone https://github.com/RyanGlScott/text-show |
Uploaded | by ryanglscott at 2022-01-03T21:37:34Z |
Distributions | Arch:3.10.3, Debian:3.8.5, LTSHaskell:3.10.5, NixOS:3.10.5, Stackage:3.11 |
Reverse Dependencies | 59 direct, 1200 indirect [details] |
Downloads | 58262 total (259 in the last 30 days) |
Rating | 2.25 (votes: 5) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2022-01-03 [all 1 reports] |