47813eb424c37b8f4edd052b3334d005189bcd8d
[ghc-base.git] / Text / Read.hs
1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
3 -- 
4 -- Module      :  Text.Read
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: Read.hs,v 1.1 2001/06/28 14:15:04 simonmar Exp $
13 --
14 -- Exiting the program.
15 --
16 -----------------------------------------------------------------------------
17
18 module Text.Read (
19    ReadS,               -- String -> Maybe (a,String)
20    Read(
21       readsPrec,        -- :: Int -> ReadS a
22       readList          -- :: ReadS [a]
23     ),
24    reads,               -- :: (Read a) => ReadS a
25    read,                -- :: (Read a) => String -> a
26    readParen,           -- :: Bool -> ReadS a -> ReadS a
27    lex,                 -- :: ReadS String
28  ) where
29
30 #ifdef __GLASGOW_HASKELL__
31 import GHC.Read
32 #endif