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. readMaybe :: (PrimMonad m, Unbox a) => MVector (PrimState m) a -> Int -> m (Maybe a)

    rebase Rebase.Data.Vector.Unboxed.Mutable

    No documentation available.

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

    rebase Rebase.Prelude

    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"
    

  3. readFile :: FilePath -> IO String

    rebase Rebase.Prelude

    The readFile function reads a file and returns the contents of the file as a string. The file is read lazily, on demand, as with getContents.

  4. readIO :: Read a => String -> IO a

    rebase Rebase.Prelude

    The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.

  5. readList :: Read a => ReadS [a]

    rebase Rebase.Prelude

    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.

  6. readListPrec :: Read a => ReadPrec [a]

    rebase Rebase.Prelude

    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.

  7. readLn :: Read a => IO a

    rebase Rebase.Prelude

    The readLn function combines getLine and readIO.

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

    rebase Rebase.Prelude

    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
    

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

    rebase Rebase.Prelude

    No documentation available.

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

    rebase Rebase.Prelude

    readParen True p parses what p parses, but surrounded with parentheses. readParen False p parses what p parses, but optionally surrounded with parentheses.

Page 226 of many | Previous | Next