convertible-text
Version 0.3.0.9 revision 0 uploaded by MichaelSnoyman.
Package meta
- Synopsis
- Typeclasses and instances for converting between types
- Description
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
orConvertSuccess
on it.The main module to import is Data.Convertible.Text.
- Author
- John Goerzen, Michael Snoyman
- Bug reports
- n/a
- Category
- Data, Failure
- Copyright
- Copyright (c) 2009-2009 John Goerzen, Copyright (c) 2010-2011 Michael Snoyman
- Homepage
- http://github.com/snoyberg/convertible/tree/text
- Maintainer
- Michael Snoyman <michael@snoyman.com>
- Package URL
- n/a
- Stability
- Stable