packages feed

convertible-text

Typeclasses and instances for converting between types (deprecated)

view on Hackage

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".
versionuploadeduploaderchanges
0.4.0.22012-01-19 10:34 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesPVP ok
0.4.0.12011-12-05 09:22 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~timePVP ok
0.4.02011-12-05 04:45 UTCMichaelSnoyman1 revisions+164/−173 lines, 7 filesdep ~timePVP ok
0.3.0.102011-08-22 20:12 UTCMichaelSnoyman1 revisions+2/−1 lines, 2 filesdep ~basePVP ok
0.3.0.92011-01-22 16:25 UTCMichaelSnoyman1 revisions+18/−18 lines, 9 filesPVP ok
0.3.0.82010-11-30 18:54 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~basedep ~textPVP ok
0.3.0.72010-11-16 10:10 UTCMichaelSnoyman1 revisions+1/−1 lines, 1 filesPVP: major bump suggested
0.3.0.62010-10-22 06:05 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~textPVP ok
0.3.0.52010-09-28 05:01 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~containersPVP ok
0.3.0.42010-09-26 18:31 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~textPVP ok
0.3.0.32010-09-01 05:23 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~textPVP ok
0.3.0.22010-07-28 06:08 UTCMichaelSnoyman1 revisions+29/−532 lines, 4 filesPVP ok
0.3.0.12010-07-12 21:36 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~timePVP ok
0.3.02010-05-13 17:48 UTCMichaelSnoyman1 revisions+24/−12 lines, 3 filesdep −safe-failuredep ~attemptPVP ok
0.2.0.52010-03-10 17:42 UTCMichaelSnoyman1 revisions+5/−5 lines, 2 filesPVP ok
0.2.0.42010-02-09 13:26 UTCMichaelSnoyman1 revisions+17/−15 lines, 2 filesdep +test-framework-quickcheck2dep −test-framework-quickcheckdep ~QuickCheckPVP ok
0.2.0.32010-02-01 14:54 UTCMichaelSnoyman1 revisions+2/−2 lines, 1 filesdep ~textPVP ok
0.2.0.22009-12-24 00:41 UTCMichaelSnoyman1 revisions+2/−3 lines, 2 filesdep ~containersPVP ok
0.2.0.12009-12-23 04:47 UTCMichaelSnoyman1 revisions+1/−105 lines, 2 files
0.2.02009-12-17 17:31 UTCMichaelSnoyman1 revisions+328/−35 lines, 9 filesdep +HUnitdep +QuickCheckdep +template-haskelldep ~attemptnew-component:exe:runtests
0.0.02009-12-08 20:26 UTCMichaelSnoyman+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 UTC1.6.2.0+48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested
2020-10-31 12:09 UTC1.6.1.0+35/−21 lines, 4 filesPVP ok
2017-03-20 01:42 UTC1.6.0.0+9/−5 lines, 4 filesdep ~basePVP ok
2016-10-16 03:35 UTC1.5.0.0+47/−27 lines, 5 filesPVP ok
2016-10-07 03:13 UTC1.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 UTC2.19.0.0+67/−41 lines, 10 filesdep +OneTuplePVP ok
2026-02-26 12:42 UTC2.18.0.0+826/−542 lines, 23 filesPVP ok
2025-10-13 12:40 UTC2.17.1.0+18/−8 lines, 4 filesdep ~randomPVP: major bump suggested
2025-10-07 12:26 UTC2.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 UTC2.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 UTC0.4.0.1 newer than bounds+3/−3 lines, 1 files
2012-01-18 17:24 UTC0.4.0 newer than bounds+260/−264 lines, 4 filesdep ~failuresetup-changedPVP ok
2011-06-27 04:07 UTC0.3.1.1+264/−263 lines, 4 filessetup-changed
2011-06-26 05:09 UTC0.3.1+8/−1 lines, 2 files
2010-05-13 17:41 UTC0.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 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.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 UTC0.12.2.0 newer than bounds+538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok
2024-02-16 03:27 UTC0.12.1.0 newer than bounds+3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested
2023-08-16 01:53 UTC0.12.0.2 newer than bounds+16/−2 lines, 3 files
2023-08-05 00:03 UTC0.12.0.1 newer than bounds+47/−9 lines, 3 files
2023-07-07 01:45 UTC0.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 UTC0.8.1 newer than bounds+8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested
2025-03-01 13:03 UTC0.8 newer than bounds+8447/−7031 lines, 37 filesnew-uploaderPVP ok
2023-09-27 12:15 UTC0.7 newer than bounds+76/−33 lines, 3 filesPVP ok
2023-09-28 04:21 UTC0.6.8 newer than bounds+644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested
2023-02-01 03:11 UTC0.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 UTC1.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 UTC1.1.0.5 newer than bounds+18/−8 lines, 2 filesPVP ok
2023-12-11 08:39 UTC1.1.0.4 newer than bounds+4746/−4619 lines, 4 filesnew-uploaderPVP: major bump suggested
2014-11-21 10:59 UTC1.1.0.3 newer than bounds+50/−186 lines, 5 filesdep ~basesetup-changedPVP ok
2014-03-22 09:43 UTC1.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 UTC2.24.0.0+606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok
2024-12-16 09:29 UTC2.23.0.0+104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok
2024-05-15 13:07 UTC2.22.0.0+176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-10-10 00:23 UTC2.21.0.0+275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-03-28 13:43 UTC2.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 UTC0.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 UTC0.8.2.2+34/−35 lines, 3 filesdep −libxmldep −utf8-stringdep ~QuickCheckPVP ok
2025-02-26 19:51 UTC0.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 UTC0.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 UTC0.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 UTC0.3.0.3+42/−40 lines, 4 filesdep −extensible-exceptionsdep ~HUnitdep ~basedep ~test-frameworksetup-changednew-uploaderPVP ok
2015-09-04 15:42 UTC0.3.0.2+12/−4 lines, 2 filesdep ~HUnitnew-uploader
2013-10-09 00:28 UTC0.3.0.1+10/−4 lines, 1 filesnew-uploader
2012-12-04 19:56 UTC0.3.0+4/−1 lines, 2 filesdep ~test-frameworkPVP ok
2012-01-27 12:54 UTC0.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 UTC0.3.0.7+14/−10 lines, 3 filesdep −extensible-exceptionsPVP ok
2025-02-26 19:51 UTC0.3.0.6+40/−33 lines, 4 filesdep ~QuickCheckdep ~basedep ~randomsetup-changednew-uploaderPVP ok
2018-09-03 17:10 UTC0.3.0.5+12/−7 lines, 3 filesdep ~QuickCheckdep ~randomPVP ok
2017-06-16 14:41 UTC0.3.0.4+47/−36 lines, 5 filesdep ~QuickCheckdep ~basedep ~test-frameworksetup-changednew-uploaderPVP: major bump suggested
2014-04-11 10:30 UTC0.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 UTC2.1.5 newer than bounds+33786/−32979 lines, 58 filesPVP: major bump suggested
2026-01-28 08:30 UTC2.1.4 newer than bounds+30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok
2025-08-01 20:08 UTC2.1.3 newer than bounds+2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok
2024-10-26 13:22 UTC2.1.2 newer than bounds+43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested
2024-02-16 22:16 UTC2.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 UTC1.16.0.1+1203/−148 lines, 25 filesPVP ok
2026-05-03 08:43 UTC1.16+353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok
2025-08-04 16:22 UTC1.15+1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok
2024-03-10 22:18 UTC1.14+6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok
2021-10-18 05:36 UTC1.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

web-encodings 0.3.0.9 requires convertible-text >=0.2.0 && <0.4 excludes current (upper bound)
convertible-ascii 0.1.0.1 requires convertible-text >=0.4 && <0.5
data-object-json 0.3.1.8 requires convertible-text >=0.3.0 && <0.5
data-object-yaml 0.3.4.2 requires convertible-text >=0.3.0 && <0.5
time-http 0.5 requires convertible-text >=0.4 && <0.5