text-show
Version 2 revision 1 uploaded by ryanglscott.
Package meta
- Synopsis
- Efficient conversion of values into Text
- Description
text-show
offers a replacement for theShow
typeclass intended for use withText
instead ofString
s. This package was created in the spirit ofbytestring-show
.At the moment,
text-show
provides instances for most data types in thearray
,base
,bytestring
, andtext
packages. Therefore, much of the source code fortext-show
consists of borrowed code from those packages in order to ensure that the behaviors ofShow
andTextShow
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. If you don't know which one to use, use TextShow.TH.- Author
- Ryan Scott
- Bug reports
- https://github.com/RyanGlScott/text-show/issues
- Category
- Text
- Copyright
- (C) 2014-2015 Ryan Scott
- Homepage
- https://github.com/RyanGlScott/text-show
- Maintainer
- Ryan Scott <ryan.gl.scott@gmail.com>
- Package URL
- n/a
- Stability
- Provisional