convertible-text: Typeclasses and instances for converting between types (deprecated)

[ bsd3, data, deprecated, failure ] [ Propose Tags ]

This is a port of John Goerzen's convertible package, intended to distinguish between conversions which are guaranteed to succeed and those which might fail. It uses the attempt package, which in turn uses the failure package, so that this package is fully compatible with the failure framework.

This package currently contains all of the typeclasses and instances for convertible. However, as these features are ported to the convertible package, this package will be left with only the instances for converting to and from text types (String, ByteString (lazy and strict) and Text (lazy and strict).

Be aware that conversions to and from bytestrings assume UTF-8 encoding. If a different encoding is desired, you can use a newtype wrapper and declare an instance of ConvertAttempt or ConvertSuccess on it.

The main module to import is Data.Convertible.Text.


Manual Flags


Build the executable to run unit tests


Skip building the library.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.0.0, 0.2.0,,,,,, 0.3.0,,,,,,,,,,, 0.4.0,,
Dependencies attempt (>=0.3.0 && <0.4), base (>=4 && <5), bytestring (>= && <0.10), containers (>= && <0.5), old-time (>= && <1.1), template-haskell, text (>=0.5 && <0.12), time [details]
License BSD-3-Clause
Copyright Copyright (c) 2009-2009 John Goerzen, Copyright (c) 2010-2011 Michael Snoyman
Author John Goerzen, Michael Snoyman
Maintainer Michael Snoyman <>
Revised Revision 1 made by HerbertValerioRiedel at 2019-02-12T22:19:28Z
Category Data, Failure
Home page
Uploaded by MichaelSnoyman at 2012-01-19T10:34:41Z
Reverse Dependencies 8 direct, 1073 indirect [details]
Executables runtests
Downloads 17715 total (50 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]