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.
readP_to_Prec :: (Int -> ReadP a) -> ReadPrec abase Text.ParserCombinators.ReadPrec No documentation available.
readPrec_to_P :: ReadPrec a -> Int -> ReadP abase Text.ParserCombinators.ReadPrec No documentation available.
readPrec_to_S :: ReadPrec a -> Int -> ReadS abase Text.ParserCombinators.ReadPrec No documentation available.
readS_to_Prec :: (Int -> ReadS a) -> ReadPrec abase Text.ParserCombinators.ReadPrec No documentation available.
readEither :: Read a => String -> Either String abase 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"
readList :: Read a => ReadS [a]base Text.Read The method readList is provided to allow the programmer to give a specialised way of parsing lists of values. For example, this is used by the predefined Read instance of the Char type, where values of type String are expected to use double quotes, rather than square brackets.
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 where readListPrec isn't defined as readListPrecDefault.
readListPrec :: Read a => ReadPrec [a]base Text.Read Proposed replacement for readList using new-style parsers (GHC only). The default definition uses readList. Instances that define readPrec should also define readListPrec as readListPrecDefault.
readListPrecDefault :: Read a => ReadPrec [a]base Text.Read A possible replacement definition for the readListPrec method, defined using readPrec (GHC only).
readMaybe :: Read a => String -> Maybe abase Text.Read Parse a string using the Read instance. Succeeds if there is exactly one valid result.
>>> readMaybe "123" :: Maybe Int Just 123
>>> readMaybe "hello" :: Maybe Int Nothing