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.

  1. 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)
    

  2. readChunksWithBufferOf :: forall (m :: Type -> Type) . MonadIO m => Unfold m (Int, Handle) (Array Word8)

    streamly-core Streamly.FileSystem.Handle

    Deprecated: Please use chunkReaderWith instead.

  3. readWith :: forall (m :: Type -> Type) . MonadIO m => Int -> Handle -> Stream m Word8

    streamly-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-release

  4. readWithBufferOf :: forall (m :: Type -> Type) . MonadIO m => Unfold m (Int, Handle) Word8

    streamly-core Streamly.FileSystem.Handle

    Deprecated: Please use readerWith instead.

  5. reader :: forall (m :: Type -> Type) . MonadIO m => Unfold m Handle Word8

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

  6. readerWith :: forall (m :: Type -> Type) . MonadIO m => Unfold m (Int, Handle) Word8

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

  7. readChars :: forall (m :: Type -> Type) . MonadIO m => Stream m Char

    streamly-core Streamly.Internal.Console.Stdio

    Read a character stream from Utf8 encoded standard input.

    readChars = Unicode.decodeUtf8 Stdio.read
    
    Pre-release

  8. readChunks :: 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-release

  9. reader :: forall (m :: Type -> Type) . MonadIO m => Unfold m () Word8

    streamly-core Streamly.Internal.Console.Stdio

    Unfold standard input into a stream of Word8.

  10. readRev :: forall (m :: Type -> Type) a . (Monad m, Unbox a) => Array a -> Stream m a

    streamly-core Streamly.Internal.Data.Array

    Convert an Array into a stream in reverse order. Pre-release

Page 280 of many | Previous | Next