read

read :: Read a => String -> a
base Prelude, base Text.Read
The read function reads input from a string, which must be completely consumed by the input process.
read :: RawIO a => a -> Ptr Word8 -> Int -> IO Int
base GHC.IO.Device
readFile :: FilePath -> IO String
base Prelude, base System.IO
The readFile function reads a file and returns the contents of the file as a string. The file is read lazily, on demand, as with getContents.
readIO :: Read a => String -> IO a
base Prelude, base System.IO
The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.
readList :: Read a => ReadS [a]
base Prelude, base Text.Read
readLn :: Read a => IO a
base Prelude, base System.IO
The readLn function combines getLine and readIO.
readParen :: Bool -> ReadS a -> ReadS a
base Prelude, base Text.Read
readParen True p parses what p parses, but surrounded with parentheses. readParen False p parses what p parses, but optionally surrounded with parentheses.
reads :: Read a => ReadS a
base Prelude, base Text.Read
equivalent to readsPrec with a precedence of 0.
readsPrec :: Read a => Int -> ReadS a
base Prelude, base Text.Read
readChan :: Chan a -> IO a
base Control.Concurrent.Chan
Read the next value from the Chan.
readConstr :: DataType -> String -> Maybe Constr
base Data.Data
Lookup a constructor via a string
readDec :: Num a => ReadS a
base Numeric
Read an unsigned number in decimal notation.
readDecP :: Num a => ReadP a
base Text.Read.Lex
readFloat :: RealFrac a => ReadS a
base Numeric
Reads an unsigned RealFrac value, expressed in decimal scientific notation.
readHex :: Num a => ReadS a
base Numeric
Read an unsigned number in hexadecimal notation. Both upper or lower case letters are allowed.
readHexP :: Num a => ReadP a
base Text.Read.Lex
readInt :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a
base Numeric
Reads an unsigned Integral value in an arbitrary base.
readIntP :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadP a
base Text.Read.Lex
readIORef :: IORef a -> IO a
base Data.IORef
Read the value of an IORef
readListDefault :: Read a => ReadS [a]
base Text.Read
A possible replacement definition for the readList method (GHC only). This is only needed for GHC, and even then only for Read instances readListPrecDefault.

Show more results