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.
readHex :: (Eq a, Num a) => ReadS abase Numeric Read an unsigned number in hexadecimal notation. Both upper or lower case letters are allowed.
>>> readHex "deadbeef" [(3735928559,"")]
readInt :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS abase Numeric Reads an unsigned integral value in an arbitrary base.
readOct :: (Eq a, Num a) => ReadS abase Numeric Read an unsigned number in octal notation.
>>> readOct "0644" [(420,"")]
readSigned :: Real a => ReadS a -> ReadS abase Numeric Reads a signed Real value, given a reader for an unsigned value.
readFile :: FilePath -> IO Stringbase 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.
readFile' :: FilePath -> IO Stringbase 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'.
readIO :: Read a => String -> IO abase System.IO The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.
-
base System.IO readP_to_S :: ReadP a -> ReadS abase 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)]
readS_to_P :: ReadS a -> ReadP abase 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.