Remove obsolete `-fno-warn-unused-imports`
[packages/haskell2010.git] / Data / Char.hs
1 #if __GLASGOW_HASKELL__ >= 701
2 {-# LANGUAGE Safe #-}
3 #endif
4
5 module Data.Char (
6 -- * Characters and strings
7 Char
8
9 , String
10
11 -- * Character classification
12 -- | Unicode characters are divided into letters, numbers, marks,
13 -- punctuation, symbols, separators (including spaces) and others
14 -- (including control characters).
15 , isControl, isSpace
16 , isLower, isUpper, isAlpha, isAlphaNum, isPrint
17 , isDigit, isOctDigit, isHexDigit
18 , isLetter, isMark, isNumber, isPunctuation, isSymbol, isSeparator
19
20 -- ** Subranges
21 , isAscii, isLatin1
22 , isAsciiUpper, isAsciiLower
23
24 -- ** Unicode general categories
25 , GeneralCategory(..), generalCategory
26
27 -- * Case conversion
28 , toUpper, toLower, toTitle -- :: Char -> Char
29
30 -- * Single digit characters
31 , digitToInt -- :: Char -> Int
32 , intToDigit -- :: Int -> Char
33
34 -- * Numeric representations
35 , ord -- :: Char -> Int
36 , chr -- :: Int -> Char
37
38 -- * String representations
39 , showLitChar -- :: Char -> ShowS
40 , lexLitChar -- :: ReadS String
41 , readLitChar -- :: ReadS Char
42 ) where
43 import "base" Data.Char