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.

  1. readerS :: forall (m :: Type -> Type) r a b . Monad m => Automaton m (r, a) b -> Automaton (ReaderT r m) a b

    automaton Data.Automaton.Trans.Reader

    Convert an explicit Automaton input into an environment in the ReaderT monad transformer. This is the opposite of runReaderS.

  2. readSchemaFromSchema :: Schema -> ReadSchema

    avro Data.Avro

    Converts Schema into ReadSchema. This function may be useful when it is known that the writer and the reader schemas are the same.

  3. readEither :: Read a => String -> Either String a

    base-prelude BasePrelude

    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"
    

  4. 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.

  5. 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.

  6. readMaybe :: Read a => String -> Maybe a

    base-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
    

  7. readP_to_Prec :: (Int -> ReadP a) -> ReadPrec a

    base-prelude BasePrelude

    No documentation available.

  8. readP_to_S :: ReadP a -> ReadS a

    base-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)]

  9. readParen :: Bool -> ReadS a -> ReadS a

    base-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.

  10. readPrec :: Read a => ReadPrec a

    base-prelude BasePrelude

    Proposed replacement for readsPrec using new-style parsers (GHC only).

Page 231 of many | Previous | Next