You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Unicode/Char/Case.hs
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,10 @@
8
8
-- Case and case mapping related functions.
9
9
--
10
10
moduleUnicode.Char.Case
11
-
( isLower
11
+
( -- * Predicates
12
+
isLowerCase
13
+
, isLower
14
+
, isUpperCase
12
15
, isUpper
13
16
)
14
17
where
@@ -17,19 +20,30 @@ import qualified Unicode.Internal.Char.DerivedCoreProperties as P
17
20
18
21
--| Returns 'True' for lower-case letters.
19
22
--
20
-
-- prop> isLower c == Data.Char.isLower c
23
+
-- @since 0.3.0
24
+
{-# INLINE isLowerCase #-}
25
+
isLowerCase::Char->Bool
26
+
isLowerCase =P.isLowercase
27
+
28
+
--| Returns 'True' for lower-case letters.
21
29
--
22
30
-- @since 0.1.0
23
31
{-# INLINE isLower #-}
32
+
{-# DEPRECATED isLower "Use isLowerCase instead. Note that the behavior of this function does not match base:Data.Char.isLower. See Unicode.Char.Case.Compat for behavior compatible with base:Data.Char." #-}
24
33
isLower::Char->Bool
25
34
isLower =P.isLowercase
26
35
27
-
--| Returns 'True' for upper-case or title-case letters. Title case is used by
28
-
-- a small number of letter ligatures like the single-character form of /Lj/.
36
+
--| Returns 'True' for upper-case letters.
29
37
--
30
-
-- prop> isUpper c == Data.Char.isUpper c
38
+
-- @since 0.3.0
39
+
{-# INLINE isUpperCase #-}
40
+
isUpperCase::Char->Bool
41
+
isUpperCase =P.isUppercase
42
+
43
+
--| Returns 'True' for upper-case letters.
31
44
--
32
45
-- @since 0.1.0
33
46
{-# INLINE isUpper #-}
47
+
{-# DEPRECATED isUpper "Use isUpperCase instead. Note that the behavior of this function does not match base:Data.Char.isUpper. See Unicode.Char.Case.Compat for behavior compatible with base:Data.Char." #-}
0 commit comments