442b84e1f4b0cf77240ba8bbc796d8d7fe7ce770
[ghc-hetmet.git] / ghc / lib / std / Char.lhs
1 %
2 % (c) The AQUA Project, Glasgow University, 1994-1999
3 %
4
5 \section[Char]{Module @Char@}
6
7 \begin{code}
8 {-# OPTIONS -fno-implicit-prelude #-}
9
10 module Char 
11     ( 
12       Char
13
14     , isAscii, isLatin1, isControl
15     , isPrint, isSpace,  isUpper
16     , isLower, isAlpha,  isDigit
17     , isOctDigit, isHexDigit, isAlphaNum  -- :: Char -> Bool
18
19     , toUpper, toLower  -- :: Char -> Char
20
21     , digitToInt        -- :: Char -> Int
22     , intToDigit        -- :: Int  -> Char
23
24     , ord               -- :: Char -> Int
25     , chr               -- :: Int  -> Char
26     , readLitChar       -- :: ReadS Char 
27     , showLitChar       -- :: Char -> ShowS
28     , lexLitChar        -- :: ReadS String
29
30     , String
31
32      -- Implementation checked wrt. Haskell 98 lib report, 1/99.
33     ) where
34
35 #ifndef __HUGS__
36 import PrelBase
37 import PrelShow
38 import PrelEnum
39 import PrelNum
40 import PrelRead (readLitChar, lexLitChar, digitToInt)
41 import PrelErr  ( error )
42 #else
43 isLatin1 c = True
44 #endif
45 \end{code}