@@ -11,6 +11,9 @@
12module Streamly.Internal.Data.Unicode.Char
12module Streamly.Internal.Data.Unicode.Char
14 -- * Unicode aware operations
17 -- * Unicode aware operations
16 toCaseFold
19 toCaseFold
@@ -21,12 +24,26 @@ module Streamly.Internal.Data.Unicode.Char
27+import Data.Char (isAsciiUpper, isAsciiLower)
24-- import Streamly (IsStream)
29-- import Streamly (IsStream)
26-------------------------------------------------------------------------------
31-------------------------------------------------------------------------------
27-- Unicode aware operations on strings
32-- Unicode aware operations on strings
28-------------------------------------------------------------------------------
33-------------------------------------------------------------------------------
35+-- | Select alphabetic characters in the ascii character set.
39+{-# INLINE isAsciiAlpha #-}
40+isAsciiAlpha :: Char -> Bool
41+isAsciiAlpha c = isAsciiUpper c || isAsciiLower c
43+-------------------------------------------------------------------------------
44+-- Unicode aware operations on strings
45+-------------------------------------------------------------------------------
32-- /undefined/
49-- /undefined/