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.

  1. module Data.StorableVector

    A time and space-efficient implementation of vectors using packed arrays, suitable for high performance use, both in terms of large data quantities, or high speed requirements. Vectors are encoded as strict arrays, held in a ForeignPtr, and can be passed between C and Haskell with little effort. This module is intended to be imported qualified, to avoid name clashes with Prelude functions. eg.

    import qualified Data.StorableVector as V
    
    Original GHC implementation by Bryan O'Sullivan. Rewritten to use UArray by Simon Marlow. Rewritten to support slices and use ForeignPtr by David Roundy. Polished and extended by Don Stewart. Generalized to any Storable value by Spencer Janssen. Chunky lazy stream, also with chunk pattern control, mutable access in ST monad, Builder monoid by Henning Thieleman.

  2. cancelNullVector :: (Vector a, b) -> Maybe (Vector a, b)

    storablevector Data.StorableVector.Lazy

    Warning: do not use it

  3. toLazyStorableVector :: Storable a => ChunkSize -> Builder a -> Vector a

    storablevector Data.StorableVector.Lazy.Builder

    toLazyStorableVector (ChunkSize 7) $ foldMap put ['a'..'z']
    

  4. splitAtVectorPattern :: Storable a => LazySize -> Vector a -> (Vector a, Vector a)

    storablevector Data.StorableVector.Lazy.Pattern

    No documentation available.

  5. takeVectorPattern :: Storable a => LazySize -> Vector a -> Vector a

    storablevector Data.StorableVector.Lazy.Pattern

    Preserves the chunk pattern of the lazy vector.

  6. type DefaultVector = Vector DefaultChunkSize

    storablevector Data.StorableVector.Lazy.Typed

    No documentation available.

  7. fromVectorLazy :: (Size size, Storable a) => Vector a -> Vector size a

    storablevector Data.StorableVector.Lazy.Typed

    This will maintain all laziness breaks, but if chunks are too big, they will be split.

  8. toVectorLazy :: Vector size a -> Vector a

    storablevector Data.StorableVector.Lazy.Typed

    No documentation available.

  9. runSTVector :: Storable e => (forall s . () => ST s (Vector s e)) -> Vector e

    storablevector Data.StorableVector.ST.Lazy

    No documentation available.

  10. runSTVector :: Storable e => (forall s . () => ST s (Vector s e)) -> Vector e

    storablevector Data.StorableVector.ST.Strict

    No documentation available.

Page 50 of many | Previous | Next