convertible-text: Typeclasses and instances for converting between types

[ 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.

Versions 0.0.0, 0.2.0,,,,,, 0.3.0,,,,,,,,,,, 0.4.0,,
Dependencies attempt (>=0.2.1 && <0.3), base (==4.*), bytestring (>= && <0.10), containers (>= && <0.3), HUnit, old-time (>= && <1.1), QuickCheck (==1.*), safe-failure (==0.4.*), template-haskell, test-framework, test-framework-hunit, test-framework-quickcheck, text (==0.5.*), time (<=1.1.4) [details]
License LicenseRef-LGPL
Copyright Copyright (c) 2009-2009 John Goerzen
Author John Goerzen, Michael Snoyman
Maintainer Michael Snoyman <>
Category Data, Failure
Home page
Uploaded by MichaelSnoyman at Thu Dec 17 17:31:43 UTC 2009
Distributions NixOS:
Executables runtests
Downloads 8285 total (55 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-30 [all 6 reports]
Hackage Matrix CI


  • Data
    • Convertible
      • Data.Convertible.Base
      • Data.Convertible.Instances
        • Data.Convertible.Instances.C
        • Data.Convertible.Instances.Map
        • Data.Convertible.Instances.Num
        • Data.Convertible.Instances.String
        • Data.Convertible.Instances.Text
        • Data.Convertible.Instances.Time
      • Data.Convertible.Text
      • Data.Convertible.Utils



Build the executable to run unit tests


Skip building the library.


time > 1.1.3 has defined some more instances so omit them here


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


Maintainer's Corner

For package maintainers and hackage trustees