diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-16 08:41:13 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-16 10:21:56 +0000 |
commit | f07ac18fbdee2b96ca7bfe3899545a2ba8529ac7 (patch) | |
tree | 7e5e9585439b9f2f57acd7249f81f8e800c921d1 /dev-haskell/text-show/metadata.xml | |
parent | dev-haskell/deriving-compat: new package, a depend of dev-haskell/persistent-2.6 (diff) | |
download | gentoo-f07ac18fbdee2b96ca7bfe3899545a2ba8529ac7.tar.gz gentoo-f07ac18fbdee2b96ca7bfe3899545a2ba8529ac7.tar.bz2 gentoo-f07ac18fbdee2b96ca7bfe3899545a2ba8529ac7.zip |
dev-haskell/text-show: new package, a depend of dev-haskell/persistent-2.6
Efficient conversion of values into Text
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-haskell/text-show/metadata.xml')
-rw-r--r-- | dev-haskell/text-show/metadata.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-haskell/text-show/metadata.xml b/dev-haskell/text-show/metadata.xml new file mode 100644 index 000000000000..3e79c8095cdb --- /dev/null +++ b/dev-haskell/text-show/metadata.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + @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 + @<http://hackage.haskell.org/package/bytestring-show bytestring-show>@. + + At the moment, @text-show@ provides instances for most data + types in the @<http://hackage.haskell.org/package/array array>@, + @<http://hackage.haskell.org/package/base base>@, + @<http://hackage.haskell.org/package/bytestring bytestring>@, and + @<http://hackage.haskell.org/package/text 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 + <https://github.com/RyanGlScott/text-show/wiki/Naming-conventions 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". + </longdescription> +</pkgmetadata> |