@hackage text-show3.9
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 (17)
- array >=0.3 && <0.6
- base >=4.9 && <4.16
- base-compat-batteries >=0.11 && <0.12
- bifunctors >=5.1 && <6
- bytestring >=0.9 && <0.12
- bytestring-builder Show all…
Dependents (70)
@hackage/dojang, @hackage/minecraft-data, @hackage/fb-util, @hackage/blosum, @hackage/dwarf-el, @hackage/consumers, Show all…
Package Flags
base-4-9
(on by default)
Use base-4.9 or later.
template-haskell-2-11
(on by default)
Use template-haskell-2.11.0.0 or later.
new-functor-classes
(on by default)
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.
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.
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.