Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. read :: InputStream a -> IO (Maybe a)

    io-streams System.IO.Streams.Internal

    Reads one value from an InputStream. Returns either a value wrapped in a Just, or Nothing if the end of the stream is reached.

  2. read :: Read a => String -> a

    rio RIO.Partial

    The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.

    >>> read "123" :: Int
    123
    
    >>> read "hello" :: Int
    *** Exception: Prelude.read: no parse
    

  3. read :: SSL -> Int -> IO ByteString

    HsOpenSSL OpenSSL.Session

    Try to read the given number of bytes from an SSL connection. On EOF an empty ByteString is returned. If the connection dies without a graceful SSL shutdown, an exception is raised. NOTE: The returned bytestring could be shorter than the size requested, see: https://www.openssl.org/docs/man3.0/man3/SSL_read.html

  4. read :: Storable e => Vector s e -> Int -> ST s e

    storablevector Data.StorableVector.ST.Lazy

    Control.Monad.ST.runST (do arr <- new_ 10; Monad.zipWithM_ (write arr) [9,8..0] ['a'..]; read arr 3)
    

  5. read :: Storable e => Vector s e -> Int -> ST s e

    storablevector Data.StorableVector.ST.Strict

    Control.Monad.ST.runST (do arr <- new_ 10; Monad.zipWithM_ (write arr) [9,8..0] ['a'..]; read arr 3)
    

  6. read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m a

    comfort-array Data.Array.Comfort.Storable.Mutable

    No documentation available.

  7. read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m a

    comfort-array Data.Array.Comfort.Storable.Mutable.Private

    No documentation available.

  8. read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m a

    comfort-array Data.Array.Comfort.Storable.Mutable.Unchecked

    No documentation available.

  9. read :: Read a => String -> a

    relude Relude.Unsafe

    The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.

    >>> read "123" :: Int
    123
    
    >>> read "hello" :: Int
    *** Exception: Prelude.read: no parse
    

  10. read :: forall (m :: Type -> Type) a r . (Monad m, Read a) => Stream (Of String) m r -> Stream (Of a) m r

    streaming Streaming.Prelude

    Make a stream of strings into a stream of parsed values, skipping bad cases

    >>> S.sum_ $ S.read $ S.takeWhile (/= "total") S.stdinLn :: IO Int
    1000<Enter>
    2000<Enter>
    total<Enter>
    3000
    

Page 2 of many | Previous | Next