convertible-text
Typeclasses and instances for converting between types (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".
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.4.0.2 | 2012-01-19 10:34 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesPVP ok |
| 0.4.0.1 | 2011-12-05 09:22 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~timePVP ok |
| 0.4.0 | 2011-12-05 04:45 UTC | MichaelSnoyman | 1 revisions | +164/−173 lines, 7 filesdep ~timePVP ok |
| 0.3.0.10 | 2011-08-22 20:12 UTC | MichaelSnoyman | 1 revisions | +2/−1 lines, 2 filesdep ~basePVP ok |
| 0.3.0.9 | 2011-01-22 16:25 UTC | MichaelSnoyman | 1 revisions | +18/−18 lines, 9 filesPVP ok |
| 0.3.0.8 | 2010-11-30 18:54 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~basedep ~textPVP ok |
| 0.3.0.7 | 2010-11-16 10:10 UTC | MichaelSnoyman | 1 revisions | +1/−1 lines, 1 filesPVP: major bump suggested |
| 0.3.0.6 | 2010-10-22 06:05 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~textPVP ok |
| 0.3.0.5 | 2010-09-28 05:01 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~containersPVP ok |
| 0.3.0.4 | 2010-09-26 18:31 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~textPVP ok |
| 0.3.0.3 | 2010-09-01 05:23 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~textPVP ok |
| 0.3.0.2 | 2010-07-28 06:08 UTC | MichaelSnoyman | 1 revisions | +29/−532 lines, 4 filesPVP ok |
| 0.3.0.1 | 2010-07-12 21:36 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~timePVP ok |
| 0.3.0 | 2010-05-13 17:48 UTC | MichaelSnoyman | 1 revisions | +24/−12 lines, 3 filesdep −safe-failuredep ~attemptPVP ok |
| 0.2.0.5 | 2010-03-10 17:42 UTC | MichaelSnoyman | 1 revisions | +5/−5 lines, 2 filesPVP ok |
| 0.2.0.4 | 2010-02-09 13:26 UTC | MichaelSnoyman | 1 revisions | +17/−15 lines, 2 filesdep +test-framework-quickcheck2dep −test-framework-quickcheckdep ~QuickCheckPVP ok |
| 0.2.0.3 | 2010-02-01 14:54 UTC | MichaelSnoyman | 1 revisions | +2/−2 lines, 1 filesdep ~textPVP ok |
| 0.2.0.2 | 2009-12-24 00:41 UTC | MichaelSnoyman | 1 revisions | +2/−3 lines, 2 filesdep ~containersPVP ok |
| 0.2.0.1 | 2009-12-23 04:47 UTC | MichaelSnoyman | 1 revisions | +1/−105 lines, 2 files |
| 0.2.0 | 2009-12-17 17:31 UTC | MichaelSnoyman | 1 revisions | +328/−35 lines, 9 filesdep +HUnitdep +QuickCheckdep +template-haskelldep ~attemptnew-component:exe:runtests |
| 0.0.0 | 2009-12-08 20:26 UTC | MichaelSnoyman | +3746/−0 lines, 15 filesdep +attemptdep +basedep +bytestringsetup-changed |
Dependencies of convertible-text-0.4.0.2
HUnit >=0 1.6.1.0 → 1.6.2.0
| 2021-01-19 18:27 UTC | 1.6.2.0 | +48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested |
| 2020-10-31 12:09 UTC | 1.6.1.0 | +35/−21 lines, 4 filesPVP ok |
| 2017-03-20 01:42 UTC | 1.6.0.0 | +9/−5 lines, 4 filesdep ~basePVP ok |
| 2016-10-16 03:35 UTC | 1.5.0.0 | +47/−27 lines, 5 filesPVP ok |
| 2016-10-07 03:13 UTC | 1.4.0.0 | +761/−778 lines, 12 filesdep +call-stackPVP ok |
showing 5 of 22 versions
QuickCheck >=2 && <3 2.18.0.0 → 2.19.0.0
| 2026-09-16 11:18 UTC | 2.19.0.0 | +67/−41 lines, 10 filesdep +OneTuplePVP ok |
| 2026-02-26 12:42 UTC | 2.18.0.0 | +826/−542 lines, 23 filesPVP ok |
| 2025-10-13 12:40 UTC | 2.17.1.0 | +18/−8 lines, 4 filesdep ~randomPVP: major bump suggested |
| 2025-10-07 12:26 UTC | 2.17.0.0 | +667/−129 lines, 14 filesdep +data-array-bytedep +hintdep +splitdep −ghc-primdep −old-localedep −old-timedep ~basedep ~randomdep ~template-haskellPVP ok |
| 2025-06-17 07:53 UTC | 2.16.0.0 | +477/−86 lines, 15 filesdep ~basenew-uploaderPVP ok |
showing 5 of 66 versions
attempt >=0.3.0 && <0.4 0.3.1.1 → 0.4.0.1 newer than bounds
| 2014-03-26 08:26 UTC | 0.4.0.1 newer than bounds | +3/−3 lines, 1 files |
| 2012-01-18 17:24 UTC | 0.4.0 newer than bounds | +260/−264 lines, 4 filesdep ~failuresetup-changedPVP ok |
| 2011-06-27 04:07 UTC | 0.3.1.1 | +264/−263 lines, 4 filessetup-changed |
| 2011-06-26 05:09 UTC | 0.3.1 | +8/−1 lines, 2 files |
| 2010-05-13 17:41 UTC | 0.3.0 | +4/−5 lines, 2 filesdep −sybdep ~failurePVP ok |
showing 5 of 11 versions
base >=4 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
bytestring >=0.9.1.4 && <0.10 0.9.2.1 → 0.12.2.0 newer than bounds
| 2024-12-06 21:41 UTC | 0.12.2.0 newer than bounds | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 newer than bounds | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 newer than bounds | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 newer than bounds | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 newer than bounds | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
containers >=0.2.0.1 && <0.5 0.4.2.1 → 0.8.1 newer than bounds
| 2026-10-04 06:08 UTC | 0.8.1 newer than bounds | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 newer than bounds | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 newer than bounds | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 newer than bounds | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 newer than bounds | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
old-time >=1.0.0.2 && <1.1 1.0.0.7 → 1.1.1.0 newer than bounds
| 2026-03-07 10:25 UTC | 1.1.1.0 newer than bounds | +495/−331 lines, 6 filesdep +old-timedep +tastydep +tasty-hunitdep ~basedep ~old-localenew-uploaderPVP ok |
| 2026-01-06 08:48 UTC | 1.1.0.5 newer than bounds | +18/−8 lines, 2 filesPVP ok |
| 2023-12-11 08:39 UTC | 1.1.0.4 newer than bounds | +4746/−4619 lines, 4 filesnew-uploaderPVP: major bump suggested |
| 2014-11-21 10:59 UTC | 1.1.0.3 newer than bounds | +50/−186 lines, 5 filesdep ~basesetup-changedPVP ok |
| 2014-03-22 09:43 UTC | 1.1.0.2 newer than bounds | +1128/−904 lines, 9 filesdep ~basedep ~old-localenew-uploaderPVP ok |
showing 5 of 14 versions
template-haskell >=0 2.23.0.0 → 2.24.0.0
| 2025-12-19 11:53 UTC | 2.24.0.0 | +606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok |
| 2024-12-16 09:29 UTC | 2.23.0.0 | +104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok |
| 2024-05-15 13:07 UTC | 2.22.0.0 | +176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-10-10 00:23 UTC | 2.21.0.0 | +275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-03-28 13:43 UTC | 2.20.0.0 | +215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok |
showing 5 of 26 versions
test-framework >=0 0.8.2.2 → 0.8.2.3
| 2026-01-05 13:44 UTC | 0.8.2.3 | +15/−15 lines, 3 filesdep −bytestringdep −old-localedep −semigroupsdep ~ansi-terminaldep ~ansi-wl-pprintdep ~hostnamePVP: major bump suggested |
| 2025-04-11 08:21 UTC | 0.8.2.2 | +34/−35 lines, 3 filesdep −libxmldep −utf8-stringdep ~QuickCheckPVP ok |
| 2025-02-26 19:51 UTC | 0.8.2.1 | +1700/−1542 lines, 55 filesdep +utf8-stringdep −base-orphansdep ~HUnitdep ~QuickCheckdep ~ansi-terminalsetup-changednew-uploaderPVP: major bump suggested |
| 2017-12-30 17:50 UTC | 0.8.2.0 | +134/−79 lines, 13 filesdep +base-orphansdep +semigroupsdep ~QuickCheckdep ~ansi-terminaldep ~ansi-wl-pprintsetup-changedPVP: major bump suggested |
| 2015-01-09 04:04 UTC | 0.8.1.1 | +7/−2 lines, 2 filesdep ~ansi-terminaldep ~timePVP ok |
showing 5 of 34 versions
test-framework-hunit >=0 0.3.0.2 → 0.3.0.3
| 2026-01-05 13:43 UTC | 0.3.0.3 | +42/−40 lines, 4 filesdep −extensible-exceptionsdep ~HUnitdep ~basedep ~test-frameworksetup-changednew-uploaderPVP ok |
| 2015-09-04 15:42 UTC | 0.3.0.2 | +12/−4 lines, 2 filesdep ~HUnitnew-uploader |
| 2013-10-09 00:28 UTC | 0.3.0.1 | +10/−4 lines, 1 filesnew-uploader |
| 2012-12-04 19:56 UTC | 0.3.0 | +4/−1 lines, 2 filesdep ~test-frameworkPVP ok |
| 2012-01-27 12:54 UTC | 0.2.7 | +5/−5 lines, 2 filesPVP ok |
showing 5 of 12 versions
test-framework-quickcheck2 >=0 0.3.0.6 → 0.3.0.7
| 2026-01-05 13:43 UTC | 0.3.0.7 | +14/−10 lines, 3 filesdep −extensible-exceptionsPVP ok |
| 2025-02-26 19:51 UTC | 0.3.0.6 | +40/−33 lines, 4 filesdep ~QuickCheckdep ~basedep ~randomsetup-changednew-uploaderPVP ok |
| 2018-09-03 17:10 UTC | 0.3.0.5 | +12/−7 lines, 3 filesdep ~QuickCheckdep ~randomPVP ok |
| 2017-06-16 14:41 UTC | 0.3.0.4 | +47/−36 lines, 5 filesdep ~QuickCheckdep ~basedep ~test-frameworksetup-changednew-uploaderPVP: major bump suggested |
| 2014-04-11 10:30 UTC | 0.3.0.3 | +25/−4 lines, 2 filesdep ~QuickCheckdep ~randomdep ~test-frameworknew-uploader |
showing 5 of 24 versions
text >=0.5 && <0.12 0.11.3.1 → 2.1.5 newer than bounds
| 2026-11-27 23:30 UTC | 2.1.5 newer than bounds | +33786/−32979 lines, 58 filesPVP: major bump suggested |
| 2026-01-28 08:30 UTC | 2.1.4 newer than bounds | +30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok |
| 2025-08-01 20:08 UTC | 2.1.3 newer than bounds | +2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok |
| 2024-10-26 13:22 UTC | 2.1.2 newer than bounds | +43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested |
| 2024-02-16 22:16 UTC | 2.1.1 newer than bounds | +986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested |
showing 5 of 83 versions
time >=0 1.16 → 1.16.0.1
| 2026-07-20 21:55 UTC | 1.16.0.1 | +1203/−148 lines, 25 filesPVP ok |
| 2026-05-03 08:43 UTC | 1.16 | +353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok |
| 2025-08-04 16:22 UTC | 1.15 | +1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok |
| 2024-03-10 22:18 UTC | 1.14 | +6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok |
| 2021-10-18 05:36 UTC | 1.13 | +1279/−1589 lines, 59 filesdep ~basePVP ok |
showing 5 of 48 versions
Reverse dependencies
5 packages depend on convertible-text; 1 have bounds that exclude 0.4.0.2