Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile' :: FilePath -> IO Stringghc-internal GHC.Internal.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 aghc-internal GHC.Internal.System.IO The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.
-
ghc-internal GHC.Internal.System.IO readP_to_S :: ReadP a -> ReadS aghc-internal GHC.Internal.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 aghc-internal GHC.Internal.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.
readP_to_Prec :: (Int -> ReadP a) -> ReadPrec aghc-internal GHC.Internal.Text.ParserCombinators.ReadPrec No documentation available.
readPrec_to_P :: ReadPrec a -> Int -> ReadP aghc-internal GHC.Internal.Text.ParserCombinators.ReadPrec No documentation available.
readPrec_to_S :: ReadPrec a -> Int -> ReadS aghc-internal GHC.Internal.Text.ParserCombinators.ReadPrec No documentation available.
readS_to_Prec :: (Int -> ReadS a) -> ReadPrec aghc-internal GHC.Internal.Text.ParserCombinators.ReadPrec No documentation available.
readEither :: Read a => String -> Either String aghc-internal GHC.Internal.Text.Read Parse a string using the Read instance. Succeeds if there is exactly one valid result. A Left value indicates a parse error.
>>> readEither "123" :: Either String Int Right 123
>>> readEither "hello" :: Either String Int Left "Prelude.read: no parse"