ascii 1.5.3.0 → 1.5.4.0
raw patch · 3 files changed
+23/−4 lines, 3 filesdep ~ascii-supersetPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ascii-superset
API changes (from Hackage documentation)
+ ASCII: class ToText a
+ ASCII: toLazyText :: ToText a => a -> Text
+ ASCII: toStrictText :: ToText a => a -> Text
+ ASCII: toUnicodeCharList :: ToText a => a -> [Char]
Files
- ascii.cabal +3/−2
- changelog.md +11/−0
- library/ASCII.hs +9/−2
ascii.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 name: ascii-version: 1.5.3.0+version: 1.5.4.0 synopsis: The ASCII character set and encoding category: Data, Text @@ -34,7 +34,7 @@ , ascii-case == 1.0.1.* , ascii-numbers == 1.1.0.* , ascii-predicates == 1.0.1.*- , ascii-superset == 1.2.6.*+ , ascii-superset == 1.2.7.* , ascii-th == 1.2.0.* , base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17 , bytestring ^>= 0.10.12 || ^>= 0.11@@ -61,6 +61,7 @@ , ASCII.QuasiQuoters , ASCII.Refinement , ASCII.Superset+ , ASCII.Superset.Text , ASCII.TemplateHaskell , ASCII.Word4
changelog.md view
@@ -1,3 +1,14 @@+### 1.5.4.0 (2023-02-08)++Raise `ascii-superset` to `1.2.7`++Adds module `ASCII.Superset.Text`++Added to the `ASCII` module:++- Class `ToText`+- Functions `toStrictText`, `toLazyText`, `toUnicodeCharList`+ ### 1.5.3.0 (2023-02-07) Raise `ascii-superset` to `1.2.6`
library/ASCII.hs view
@@ -96,7 +96,8 @@ {- * Polymorphic conversions -} {- ** Narrowing -} toAsciiCharMaybe, toDigitMaybe, toHexCharMaybe, {- ** Validate -} validateChar, validateString,- {- ** Lift -} {- $lift -} lift,+ {- ** Widening -} {- $toText -} toStrictText, toLazyText, toUnicodeCharList,+ {- $lift -} lift, {- ** Convert -} {- $supersetConversions -} convertCharMaybe, convertCharOrFail, convertStringMaybe, convertStringOrFail, convertRefinedString,@@ -110,7 +111,8 @@ digitString, hexCharString, {- * Classes -}- {- ** Supersets of ASCII -} CharSuperset, StringSuperset, StringSupersetConversion, Lift,+ {- ** Supersets of ASCII -} CharSuperset, StringSuperset,+ StringSupersetConversion, ToText, Lift, {- ** Equivalents to ASCII -} CharIso, StringIso, {- ** Supersets of numeric characters -} DigitSuperset, DigitStringSuperset, HexCharSuperset, HexStringSuperset,@@ -132,6 +134,7 @@ import ASCII.Refinement (ASCII, validateChar, validateString) import ASCII.Superset (CharSuperset, StringSuperset) import ASCII.SupersetConversion (StringSupersetConversion)+import ASCII.Superset.Text (ToText (..)) import Control.Monad ((>=>)) import Control.Monad.Fail (MonadFail)@@ -479,6 +482,10 @@ {- $lift See also: "ASCII.Lift" -}++{- $toText++See also: "ASCII.Superset.ToText" -} {-| Converts from ASCII to any larger type