Skip to content

Commit e28aaef

Browse files
authored
Merge pull request #52 from wismill/feature/numeric
Re-export digitToInt and intToDigit.
2 parents fc5a08b + 595288f commit e28aaef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Unicode/Char/Numeric.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ module Unicode.Char.Numeric
1414
, isDigit
1515
, isOctDigit
1616
, isHexDigit
17+
, digitToInt
18+
, intToDigit
1719
) where
1820

19-
import Data.Char (isDigit, isHexDigit, isOctDigit)
21+
import Data.Char (digitToInt, intToDigit, isDigit, isHexDigit, isOctDigit)
2022
import Unicode.Char.General (GeneralCategory(..), generalCategory)
2123

2224
{-| Selects Unicode numeric characters, including digits from various
@@ -38,4 +40,4 @@ isNumber c = case generalCategory c of
3840
DecimalNumber -> True
3941
LetterNumber -> True
4042
OtherNumber -> True
41-
_ -> False
43+
_ -> False

0 commit comments

Comments
 (0)