Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readInt :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS aghc-internal GHC.Internal.Numeric Reads an unsigned integral value in an arbitrary base.
readOct :: (Eq a, Num a) => ReadS aghc-internal GHC.Internal.Numeric Read an unsigned number in octal notation.
>>> readOct "0644" [(420,"")]
readSigned :: Real a => ReadS a -> ReadS aghc-internal GHC.Internal.Numeric Reads a signed Real value, given a reader for an unsigned value.
readField :: String -> ReadPrec a -> ReadPrec aghc-internal GHC.Internal.Read Read parser for a record field, of the form fieldName=value. The fieldName must be an alphanumeric identifier; for symbols (operator-style) field names, e.g. (#), use readSymField). The second argument is a parser for the field value.
readFieldHash :: String -> ReadPrec a -> ReadPrec aghc-internal GHC.Internal.Read Read parser for a record field, of the form fieldName#=value. That is, an alphanumeric identifier fieldName followed by the symbol #. The second argument is a parser for the field value. Note that readField does not suffice for this purpose due to #5041.
readList :: Read a => ReadS [a]ghc-internal GHC.Internal.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.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.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.Read A possible replacement definition for the readListPrec method, defined using readPrec (GHC only).
-
ghc-internal GHC.Internal.Read Read a string representation of a character, using Haskell source-language escape conventions, and convert it to the character that it encodes. For example:
readLitChar "\\nHello" = [('\n', "Hello")]