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