Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. fromList :: (MonadIO m, Unbox a) => [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray

    Create a MutArray from a list. The list must be of finite size.

  2. fromListN :: (MonadIO m, Unbox a) => Int -> [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray

    Create a MutArray from the first N elements of a list. The array is allocated to size N, if the list terminates before N elements then the array may hold less than N elements.

  3. toList :: (MonadIO m, Unbox a) => MutArray a -> m [a]

    streamly-core Streamly.Data.MutArray

    Convert a MutArray into a list.

  4. fromList :: MonadIO m => [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray.Generic

    No documentation available.

  5. fromListN :: MonadIO m => Int -> [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray.Generic

    No documentation available.

  6. toList :: MonadIO m => MutArray a -> m [a]

    streamly-core Streamly.Data.MutArray.Generic

    Convert an Array into a list. Pre-release

  7. fromList :: forall (m :: Type -> Type) a . Applicative m => [a] -> Stream m a

    streamly-core Streamly.Data.Stream

    Construct a stream from a list of pure values.

  8. toList :: Monad m => Stream m a -> m [a]

    streamly-core Streamly.Data.Stream

    Definitions:

    >>> toList = Stream.foldr (:) []
    
    >>> toList = Stream.fold Fold.toList
    
    Convert a stream into a list in the underlying monad. The list can be consumed lazily in a lazy monad (e.g. Identity). In a strict monad (e.g. IO) the whole list is generated and buffered before it can be consumed. Warning! working on large lists accumulated as buffers in memory could be very inefficient, consider using Streamly.Data.Array instead. Note that this could a bit more efficient compared to Stream.fold Fold.toList, and it can fuse with pure list consumers.

  9. fromList :: forall (m :: Type -> Type) a . Applicative m => Unfold m [a] a

    streamly-core Streamly.Data.Unfold

    Convert a list of pure values to a Stream

  10. fromListM :: Applicative m => Unfold m [m a] a

    streamly-core Streamly.Data.Unfold

    Convert a list of monadic values to a Stream

Page 174 of many | Previous | Next