Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. arrayFromListN :: Int -> [a] -> Array a

    primitive Data.Primitive.Array

    Create an array from a list of a known length. If the length of the list does not match the given length, this throws an exception.

  2. byteArrayFromList :: Prim a => [a] -> ByteArray

    primitive Data.Primitive.ByteArray

    Create a ByteArray from a list.

    byteArrayFromList xs = byteArrayFromListN (length xs) xs
    

  3. byteArrayFromListN :: Prim a => Int -> [a] -> ByteArray

    primitive Data.Primitive.ByteArray

    Create a ByteArray from a list of a known length. If the length of the list does not match the given length, this throws an exception.

  4. primArrayFromList :: Prim a => [a] -> PrimArray a

    primitive Data.Primitive.PrimArray

    Create a PrimArray from a list.

    primArrayFromList vs = primArrayFromListN (length vs) vs
    

  5. primArrayFromListN :: Prim a => Int -> [a] -> PrimArray a

    primitive 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.

  6. primArrayToList :: Prim a => PrimArray a -> [a]

    primitive Data.Primitive.PrimArray

    Convert a PrimArray to a list.

  7. smallArrayFromList :: [a] -> SmallArray a

    primitive Data.Primitive.SmallArray

    Create a SmallArray from a list.

  8. smallArrayFromListN :: Int -> [a] -> SmallArray a

    primitive 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.

  9. 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.6

  10. sinkList :: 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

Page 53 of many | Previous | Next