Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readList :: Read a => ReadS [a]base-prelude BasePrelude 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.
readListPrec :: Read a => ReadPrec [a]base-prelude BasePrelude 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.
readMaybe :: Read a => String -> Maybe abase-prelude BasePrelude 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
readP_to_Prec :: (Int -> ReadP a) -> ReadPrec abase-prelude BasePrelude No documentation available.
readP_to_S :: ReadP a -> ReadS abase-prelude BasePrelude 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)]
readParen :: Bool -> ReadS a -> ReadS abase-prelude BasePrelude readParen True p parses what p parses, but surrounded with parentheses. readParen False p parses what p parses, but optionally surrounded with parentheses.
readPrec :: Read a => ReadPrec abase-prelude BasePrelude Proposed replacement for readsPrec using new-style parsers (GHC only).
readPrec_to_P :: ReadPrec a -> Int -> ReadP abase-prelude BasePrelude No documentation available.
readPrec_to_S :: ReadPrec a -> Int -> ReadS abase-prelude BasePrelude No documentation available.
readS_to_P :: ReadS a -> ReadP abase-prelude BasePrelude Converts a Haskell ReadS-style function into a parser. Warning: This introduces local backtracking in the resulting parser, and therefore a possible inefficiency.