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