The convertible-text package

[Tags: bsd3, deprecated]

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.


Properties

Versions0.0.0, 0.2.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.0.5, 0.3.0, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.0.4, 0.3.0.5, 0.3.0.6, 0.3.0.7, 0.3.0.8, 0.3.0.9, 0.3.0.10, 0.4.0, 0.4.0.1, 0.4.0.2
Dependenciesattempt (>=0.3.0 && <0.4), base (==4.*), bytestring (>=0.9.1.4 && <0.10), containers (>=0.2.0.1 && <0.4), old-time (>=1.0.0.2 && <1.1), template-haskell, text (>=0.5 && <0.8), time (<1.1.3) or
attempt (>=0.3.0 && <0.4), base (==4.*), bytestring (>=0.9.1.4 && <0.10), containers (>=0.2.0.1 && <0.4), old-time (>=1.0.0.2 && <1.1), template-haskell, text (>=0.5 && <0.8), time (>=1.1.3 && <=1.1.4)
LicenseLGPL
CopyrightCopyright (c) 2009-2009 John Goerzen
AuthorJohn Goerzen, Michael Snoyman
MaintainerMichael Snoyman <michael@snoyman.com>
StabilityStable
CategoryData, Failure
Home pagehttp://github.com/snoyberg/convertible/tree/text
Executablesruntests
UploadedThu May 13 17:48:53 UTC 2010 by MichaelSnoyman
Downloads2004 total (80 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefault
buildtestsBuild the executable to run unit testsDisabled
nolibSkip building the library.Disabled
time_gte_113time > 1.1.3 has defined some more instances so omit them hereEnabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees