Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readHex :: (Eq a, Num a) => ReadS a

    base Numeric

    Read an unsigned number in hexadecimal notation. Both upper or lower case letters are allowed.

    >>> readHex "deadbeef"
    [(3735928559,"")]
    

  2. readInt :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a

    base Numeric

    Reads an unsigned integral value in an arbitrary base.

  3. readOct :: (Eq a, Num a) => ReadS a

    base Numeric

    Read an unsigned number in octal notation.

    >>> readOct "0644"
    [(420,"")]
    

  4. readSigned :: Real a => ReadS a -> ReadS a

    base Numeric

    Reads a signed Real value, given a reader for an unsigned value.

  5. readFile :: FilePath -> IO String

    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.

  6. readFile' :: FilePath -> IO String

    base System.IO

    The readFile' function reads a file and returns the contents of the file as a string. The file is fully read before being returned, as with getContents'.

  7. readIO :: Read a => String -> IO a

    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.

  8. readLn :: Read a => IO a

    base System.IO

    The readLn function combines getLine and readIO.

  9. readP_to_S :: ReadP a -> ReadS a

    base Text.ParserCombinators.ReadP

    Converts a parser into a Haskell ReadS-style function. This is the main way in which you can "run" a ReadP parser: the expanded type is readP_to_S :: ReadP a -> String -> [(a,String)]

  10. readS_to_P :: ReadS a -> ReadP a

    base Text.ParserCombinators.ReadP

    Converts a Haskell ReadS-style function into a parser. Warning: This introduces local backtracking in the resulting parser, and therefore a possible inefficiency.

Page 23 of many | Previous | Next