Commit graph

3 commits

Author SHA1 Message Date
PHO / phonohawk
533059751a Upstream update to convertible-text-0.4.0.1 2012-01-16 05:56:00 +00:00
PHO / phonohawk
db39cc6c56 Upstream update to convertible-text-0.4.0 2011-12-05 04:57:58 +00:00
PHO / phonohawk
7efdaacd23 Import hs-convertible-text-0.3.0.10 as wip/hs-convertible-text.
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.
2011-12-02 06:26:41 +00:00