e7d7b729e827768df4acb5ff71a764d289fa1503
[ghc-base.git] / Data / Char.hs
1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
3 -- |
4 -- Module      :  Data.Char
5 -- Copyright   :  (c) The University of Glasgow 2001
6 -- License     :  BSD-style (see the file libraries/core/LICENSE)
7 -- 
8 -- Maintainer  :  libraries@haskell.org
9 -- Stability   :  provisional
10 -- Portability :  portable
11 --
12 -- The Char type and associated operations.
13 --
14 -----------------------------------------------------------------------------
15
16 module Data.Char 
17     (
18       Char
19
20     , isAscii, isLatin1, isControl
21     , isPrint, isSpace,  isUpper
22     , isLower, isAlpha,  isDigit
23     , isOctDigit, isHexDigit, isAlphaNum  -- :: Char -> Bool
24
25     , toUpper, toLower  -- :: Char -> Char
26
27     , digitToInt        -- :: Char -> Int
28     , intToDigit        -- :: Int  -> Char
29
30     , ord               -- :: Char -> Int
31     , chr               -- :: Int  -> Char
32     , readLitChar       -- :: ReadS Char 
33     , showLitChar       -- :: Char -> ShowS
34     , lexLitChar        -- :: ReadS String
35
36     , String
37
38      -- Implementation checked wrt. Haskell 98 lib report, 1/99.
39     ) where
40
41 #ifdef __GLASGOW_HASKELL__
42 import GHC.Base
43 import GHC.Show
44 import GHC.Read (readLitChar, lexLitChar)
45 #endif
46
47 #ifdef __HUGS__
48 isLatin1 c = True
49 #endif
50