Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readChunksWith :: forall (m :: Type -> Type) . MonadIO m => Int -> Handle -> Stream m (Array Word8)streamly-core Streamly.FileSystem.Handle readChunksWith size handle reads a stream of arrays from the file handle handle. The maximum size of a single array is limited to size. The actual size read may be less than or equal to size.
>>> readChunksWith size h = Stream.unfold Handle.chunkReaderWith (size, h)
-
streamly-core Streamly.FileSystem.Handle Deprecated: Please use chunkReaderWith instead.
readWith :: forall (m :: Type -> Type) . MonadIO m => Int -> Handle -> Stream m Word8streamly-core Streamly.FileSystem.Handle readWith bufsize handle reads a byte stream from a file handle, reads are performed in chunks of up to bufsize.
>>> readWith size h = Stream.unfoldMany Array.reader $ Handle.readChunksWith size h
Pre-releasereadWithBufferOf :: forall (m :: Type -> Type) . MonadIO m => Unfold m (Int, Handle) Word8streamly-core Streamly.FileSystem.Handle Deprecated: Please use readerWith instead.
reader :: forall (m :: Type -> Type) . MonadIO m => Unfold m Handle Word8streamly-core Streamly.FileSystem.Handle Unfolds a file handle into a byte stream. IO requests to the device are performed in sizes of defaultChunkSize.
>>> reader = Unfold.many Array.reader Handle.chunkReader
readerWith :: forall (m :: Type -> Type) . MonadIO m => Unfold m (Int, Handle) Word8streamly-core Streamly.FileSystem.Handle Unfolds the tuple (bufsize, handle) into a byte stream, read requests to the IO device are performed using buffers of bufsize.
>>> readerWith = Unfold.many Array.reader Handle.chunkReaderWith
readChars :: forall (m :: Type -> Type) . MonadIO m => Stream m Charstreamly-core Streamly.Internal.Console.Stdio Read a character stream from Utf8 encoded standard input.
readChars = Unicode.decodeUtf8 Stdio.read
Pre-releasereadChunks :: forall (m :: Type -> Type) . MonadIO m => Stream m (Array Word8)streamly-core Streamly.Internal.Console.Stdio Read a stream of chunks from standard input. The maximum size of a single chunk is limited to defaultChunkSize. The actual size read may be less than defaultChunkSize.
readChunks = Handle.readChunks stdin readChunks = Stream.unfold Stdio.chunkReader ()
Pre-releasereader :: forall (m :: Type -> Type) . MonadIO m => Unfold m () Word8streamly-core Streamly.Internal.Console.Stdio Unfold standard input into a stream of Word8.
readRev :: forall (m :: Type -> Type) a . (Monad m, Unbox a) => Array a -> Stream m astreamly-core Streamly.Internal.Data.Array Convert an Array into a stream in reverse order. Pre-release