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.
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.
-
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
read :: SSL -> Int -> IO ByteStringHsOpenSSL 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
read :: Storable e => Vector s e -> Int -> ST s estorablevector Data.StorableVector.ST.Lazy Control.Monad.ST.runST (do arr <- new_ 10; Monad.zipWithM_ (write arr) [9,8..0] ['a'..]; read arr 3)
read :: Storable e => Vector s e -> Int -> ST s estorablevector Data.StorableVector.ST.Strict Control.Monad.ST.runST (do arr <- new_ 10; Monad.zipWithM_ (write arr) [9,8..0] ['a'..]; read arr 3)
read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m acomfort-array Data.Array.Comfort.Storable.Mutable No documentation available.
read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m acomfort-array Data.Array.Comfort.Storable.Mutable.Private No documentation available.
read :: (PrimMonad m, Indexed sh, Storable a) => Array m sh a -> Index sh -> m acomfort-array Data.Array.Comfort.Storable.Mutable.Unchecked No documentation available.
-
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
-
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