X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FChar.hs;h=2ec1e66ad4bd1fad318af3de3f87967a21b4c548;hb=0a41af38169035a4359c0c29bc1219af564dce64;hp=c8c630e922435f8307487d1c42ed300e74ecd13c;hpb=aaedec91d25e9240edda260e6a0aaf9f76844864;p=ghc-base.git diff --git a/Data/Char.hs b/Data/Char.hs index c8c630e..2ec1e66 100644 --- a/Data/Char.hs +++ b/Data/Char.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Char @@ -6,7 +6,7 @@ -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org --- Stability : provisional +-- Stability : stable -- Portability : portable -- -- The Char type and associated operations. @@ -23,14 +23,16 @@ module Data.Char -- | Unicode characters are divided into letters, numbers, marks, -- punctuation, symbols, separators (including spaces) and others -- (including control characters). - -- The full set of Unicode character attributes is not accessible - -- in this library. , isAscii, isLatin1, isControl, isSpace , isLower, isUpper, isAlpha, isAlphaNum, isPrint - , isDigit, isOctDigit, isHexDigit -- :: Char -> Bool + , isDigit, isOctDigit, isHexDigit + , isAsciiUpper, isAsciiLower + , isLetter, isMark, isNumber, isPunctuation, isSymbol, isSeparator + + , GeneralCategory(..), generalCategory -- * Case conversion - , toUpper, toLower -- :: Char -> Char + , toUpper, toLower, toTitle -- :: Char -> Char -- * Single digit characters , digitToInt -- :: Char -> Int