Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

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

  1. defaultReaderInfo :: ReaderInfo

    soxlib Sound.SoxLib

    No documentation available.

  2. openRead :: ReaderInfo -> FilePath -> IO (FormatPtr ReadMode)

    soxlib Sound.SoxLib

    This function will never return a nullPtr. Instead it throws a user exception if the file cannot be opened.

  3. withRead :: ReaderInfo -> FilePath -> (FormatPtr ReadMode -> IO a) -> IO a

    soxlib Sound.SoxLib

    No documentation available.

  4. chunkReader :: forall (m :: Type -> Type) . MonadIO m => Unfold m () (Array Word8)

    streamly-core Streamly.Console.Stdio

    Unfolds standard input into a stream of Word8 arrays.

  5. runReaderT :: Monad m => m s -> Stream (ReaderT s m) a -> Stream m a

    streamly-core Streamly.Data.Stream

    Evaluate the inner monad of a stream as ReaderT.

  6. chunkReader :: forall (m :: Type -> Type) . MonadIO m => Unfold m Handle (Array Word8)

    streamly-core Streamly.FileSystem.Handle

    Unfolds a handle into a stream of Word8 arrays. Requests to the IO device are performed using a buffer of size defaultChunkSize. The size of arrays in the resulting stream are therefore less than or equal to defaultChunkSize.

    >>> chunkReader = Unfold.first IO.defaultChunkSize Handle.chunkReaderWith
    

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

    streamly-core Streamly.FileSystem.Handle

    Unfold the tuple (bufsize, handle) into a stream of Word8 arrays. Read requests to the IO device are performed using a buffer of size bufsize. The size of an array in the resulting stream is always less than or equal to bufsize.

  8. chunkReader :: forall (m :: Type -> Type) . MonadIO m => Unfold m () (Array Word8)

    streamly-core Streamly.Internal.Console.Stdio

    Unfolds standard input into a stream of Word8 arrays.

  9. indexReader :: forall (m :: Type -> Type) a . (Monad m, Unbox a) => Stream m Int -> Unfold m (Array a) a

    streamly-core Streamly.Internal.Data.Array

    Given a stream of array indices, read the elements on those indices from the supplied Array. An exception is thrown if an index is out of bounds. This is the most general operation. We can implement other operations in terms of this:

    read =
    let u = lmap (arr -> (0, length arr - 1)) Unfold.enumerateFromTo
    in Unfold.lmap f (indexReader arr)
    
    readRev =
    let i = length arr - 1
    in Unfold.lmap f (indexReaderFromThenTo i (i - 1) 0)
    
    Pre-release

  10. indexReaderFromThenTo :: forall (m :: Type -> Type) a . Unfold m (Int, Int, Int, Array a) a

    streamly-core Streamly.Internal.Data.Array

    Unfolds (from, then, to, array) generating a finite stream whose first element is the array value from the index from and the successive elements are from the indices in increments of then up to to. Index enumeration can occur downwards or upwards depending on whether then comes before or after from.

    getIndicesFromThenTo =
    let f (from, next, to, arr) =
    (Stream.enumerateFromThenTo from next to, arr)
    in Unfold.lmap f getIndices
    
    Unimplemented

Page 728 of many | Previous | Next