ascii 1.2.2.0 → 1.2.3.0
raw patch · 2 files changed
+12/−3 lines, 2 filesdep ~ascii-predicatesdep ~basedep ~hedgehogPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ascii-predicates, base, hedgehog, text
API changes (from Hackage documentation)
+ ASCII: isVisible :: CharSuperset char => char -> Bool
Files
- ascii.cabal +2/−2
- library/ASCII.hs +10/−1
ascii.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 name: ascii-version: 1.2.2.0+version: 1.2.3.0 synopsis: The ASCII character set and encoding category: Data, Text @@ -61,7 +61,7 @@ , ASCII.Hexadecimal , ASCII.Word4 - build-depends: ascii-predicates == 1.0.0.*+ build-depends: ascii-predicates == 1.0.1.* reexported-modules: ASCII.Predicates , ASCII.Lists
library/ASCII.hs view
@@ -24,7 +24,7 @@ {- ** Decimal digits -} {- $digit -} isDigit, Digit, {- ** Hexadecimal digits -} {- $hexchar -} isHexDigit, HexChar, {- ** Octal digits -} isOctDigit,- {- ** Spaces and symbols -} isSpace, isPunctuation, isSymbol,+ {- ** Spaces and symbols -} isSpace, isPunctuation, isSymbol, isVisible, {- * Monomorphic character conversions -} {- $monomorphicConversions -} {- ** @ASCII.Char@ ↔ @Int@ -} {- $intConversions -}@@ -629,6 +629,15 @@ isSymbol :: CharSuperset char => char -> Bool isSymbol x = any ASCII.Predicates.isSymbol (convertCharMaybe x)++{- | Returns True for visible characters.++This includes all print characters except 'ASCII.Char.Space'.++-}++isVisible :: CharSuperset char => char -> Bool+isVisible x = any ASCII.Predicates.isVisible (convertCharMaybe x) {- $numbers