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.
readList :: Read a => ReadS [a]ghc-internal GHC.Internal.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]ghc-internal GHC.Internal.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]ghc-internal GHC.Internal.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]ghc-internal GHC.Internal.Text.Read A possible replacement definition for the readListPrec method, defined using readPrec (GHC only).
readMaybe :: Read a => String -> Maybe aghc-internal GHC.Internal.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
readParen :: Bool -> ReadS a -> ReadS aghc-internal GHC.Internal.Text.Read 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 aghc-internal GHC.Internal.Text.Read Proposed replacement for readsPrec using new-style parsers (GHC only).
-
ghc-internal GHC.Internal.Text.Read equivalent to readsPrec with a precedence of 0.
readsPrec :: Read a => Int -> ReadS aghc-internal GHC.Internal.Text.Read attempts to parse a value from the front of the string, returning a list of (parsed value, remaining string) pairs. If there is no successful parse, the returned list is empty. Derived instances of Read and Show satisfy the following:
That is, readsPrec parses the string produced by showsPrec, and delivers the value that showsPrec started with.readBinP :: (Eq a, Num a) => ReadP aghc-internal GHC.Internal.Text.Read.Lex No documentation available.