Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
primArrayFromList :: Prim a => [a] -> PrimArray aprimitive Data.Primitive.PrimArray Create a PrimArray from a list.
primArrayFromList vs = primArrayFromListN (length vs) vs
primArrayFromListN :: Prim a => Int -> [a] -> PrimArray aprimitive Data.Primitive.PrimArray Create a PrimArray from a list of a known length. If the length of the list does not match the given length, this throws an exception.
primArrayToList :: Prim a => PrimArray a -> [a]primitive Data.Primitive.PrimArray Convert a PrimArray to a list.
smallArrayFromList :: [a] -> SmallArray aprimitive Data.Primitive.SmallArray Create a SmallArray from a list.
smallArrayFromListN :: Int -> [a] -> SmallArray aprimitive Data.Primitive.SmallArray Create a SmallArray from a list of a known length. If the length of the list does not match the given length, this throws an exception.
sourceToList :: Monad m => ConduitT () a m () -> m [a]conduit Data.Conduit Convert a Source into a list. The basic functionality can be explained as:
sourceToList src = src $$ Data.Conduit.List.consume
However, sourceToList is able to produce its results lazily, which cannot be done when running a conduit pipeline in general. Unlike the Data.Conduit.Lazy module (in conduit-extra), this function performs no unsafe I/O operations, and therefore can only be as lazy as the underlying monad. Since 1.2.6sinkList :: forall (m :: Type -> Type) a o . Monad m => ConduitT a o m [a]conduit Data.Conduit.Combinators Consume all values from the stream and return as a list. Note that this will pull all values into memory. Subject to fusion
sourceList :: forall (m :: Type -> Type) a l i u . Monad m => [a] -> Pipe l i a u m ()conduit Data.Conduit.Internal Convert a list into a source. Since 0.3.0
sourceToList :: Monad m => ConduitT () a m () -> m [a]conduit Data.Conduit.Internal Convert a Source into a list. The basic functionality can be explained as:
sourceToList src = src $$ Data.Conduit.List.consume
However, sourceToList is able to produce its results lazily, which cannot be done when running a conduit pipeline in general. Unlike the Data.Conduit.Lazy module (in conduit-extra), this function performs no unsafe I/O operations, and therefore can only be as lazy as the underlying monad. Since 1.2.6sourceListS :: forall (m :: Type -> Type) a . Monad m => [a] -> StreamProducer m aconduit Data.Conduit.Internal.List.Stream No documentation available.