The convertible-text package

[Tags: bsd3, deprecated]


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.


Versions0.0.0, 0.2.0,,,,,, 0.3.0,,,,,,,,,,, 0.4.0,,
Change logNone available
Dependenciesattempt (>=0.3.0 && <0.4), base (==4.*), bytestring (>= && <0.10), containers (>= && <0.5), HUnit, old-time (>= && <1.1), QuickCheck (==2.*), template-haskell, test-framework, test-framework-hunit, test-framework-quickcheck2, text (>=0.5 && <0.12), time [details]
CopyrightCopyright (c) 2009-2009 John Goerzen, Copyright (c) 2010-2011 Michael Snoyman
AuthorJohn Goerzen, Michael Snoyman
MaintainerMichael Snoyman <>
CategoryData, Failure
Home page
UploadedMon Dec 5 09:22:36 UTC 2011 by MichaelSnoyman
Downloads4106 total (53 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




buildtestsBuild the executable to run unit testsDisabledAutomatic
nolibSkip building the library.DisabledAutomatic

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


Maintainers' corner

For package maintainers and hackage trustees