[project @ 2002-04-24 16:31:37 by simonmar]
[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 -- $Id: Char.hs,v 1.3 2002/04/24 16:31:39 simonmar Exp $
13 --
14 -- The Char type and associated operations.
15 --
16 -----------------------------------------------------------------------------
17
18 module Data.Char 
19     (
20       Char
21
22     , isAscii, isLatin1, isControl
23     , isPrint, isSpace,  isUpper
24     , isLower, isAlpha,  isDigit
25     , isOctDigit, isHexDigit, isAlphaNum  -- :: Char -> Bool
26
27     , toUpper, toLower  -- :: Char -> Char
28
29     , digitToInt        -- :: Char -> Int
30     , intToDigit        -- :: Int  -> Char
31
32     , ord               -- :: Char -> Int
33     , chr               -- :: Int  -> Char
34     , readLitChar       -- :: ReadS Char 
35     , showLitChar       -- :: Char -> ShowS
36     , lexLitChar        -- :: ReadS String
37
38     , String
39
40      -- Implementation checked wrt. Haskell 98 lib report, 1/99.
41     ) where
42
43 #ifdef __GLASGOW_HASKELL__
44 import GHC.Base
45 import GHC.Show
46 import GHC.Read (readLitChar, lexLitChar)
47 #endif
48
49 #ifdef __HUGS__
50 isLatin1 c = True
51 #endif
52