Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. vectorTraverse :: forall (v :: Type -> Type) a (w :: Type -> Type) b . (Vector v a, Vector w b) => IndexedTraversal Int (v a) (w b) a b

    lens Data.Vector.Generic.Lens

    Indexed vector traversal for a generic vector.

  2. vectorBuilderC :: forall (m :: Type -> Type) v e n i r . (PrimMonad m, Vector v e, PrimMonad n, PrimState m ~ PrimState n) => Int -> ((e -> n ()) -> ConduitT i Void m r) -> ConduitT i (v e) m r

    conduit Conduit

    Generally speaking, yielding values from inside a Conduit requires some allocation for constructors. This can introduce an overhead, similar to the overhead needed to represent a list of values instead of a vector. This overhead is even more severe when talking about unboxed values. This combinator allows you to overcome this overhead, and efficiently fill up vectors. It takes two parameters. The first is the size of each mutable vector to be allocated. The second is a function. The function takes an argument which will yield the next value into a mutable vector. Under the surface, this function uses a number of tricks to get high performance. For more information on both usage and implementation, please see: https://www.fpcomplete.com/user/snoyberg/library-documentation/vectorbuilder

  3. vectorBuilder :: forall (m :: Type -> Type) n v e i r . (PrimMonad m, PrimMonad n, Vector v e, PrimState m ~ PrimState n) => Int -> ((e -> n ()) -> ConduitT i Void m r) -> ConduitT i (v e) m r

    conduit Data.Conduit.Combinators

    Generally speaking, yielding values from inside a Conduit requires some allocation for constructors. This can introduce an overhead, similar to the overhead needed to represent a list of values instead of a vector. This overhead is even more severe when talking about unboxed values. This combinator allows you to overcome this overhead, and efficiently fill up vectors. It takes two parameters. The first is the size of each mutable vector to be allocated. The second is a function. The function takes an argument which will yield the next value into a mutable vector. Under the surface, this function uses a number of tricks to get high performance. For more information on both usage and implementation, please see: https://www.schoolofhaskell.com/user/snoyberg/library-documentation/vectorbuilder

  4. vectorM :: forall (m :: Type -> Type) v a . (PrimMonad m, Vector v a) => FoldM m a (v a)

    foldl Control.Foldl

    Fold all values into a vector This is more efficient than vector but is impure

  5. package vector-algorithms

    Efficient algorithms for vector arrays Efficient algorithms for sorting vector arrays. At some stage other vector algorithms may be added.

  6. vectorOutputStream :: Vector v c => IO (OutputStream c, IO (v c))

    io-streams System.IO.Streams.Vector

    vectorOutputStream returns an OutputStream which stores values fed into it and an action which flushes all stored values to a vector. The flush action resets the store. Note that this function will buffer any input sent to it on the heap. Please don't use this unless you're sure that the amount of input provided is bounded and will fit in memory without issues.

    ghci> (os, flush) <- Streams.vectorOutputStream :: IO (OutputStream Int, IO (V.Vector Int))
    ghci> Streams.write (Just 1) os
    ghci> Streams.write (Just 2) os
    ghci> flush
    fromList [1,2]
    ghci> Streams.write (Just 3) os
    ghci> Streams.write Nothing  os
    ghci> Streams.write (Just 4) os
    ghci> flush
    fromList [3]
    

  7. vectorOutputStreamSized :: Vector v c => Int -> IO (OutputStream c, IO (v c))

    io-streams System.IO.Streams.Vector

    Like vectorOutputStream, but allows control over how large the vector buffer is to start with.

  8. vectorSort :: (Vector v e, Ord e) => v e -> v e

    mono-traversable Data.Sequences

    Sort a vector.

  9. vectorSortBy :: Vector v e => (e -> e -> Ordering) -> v e -> v e

    mono-traversable Data.Sequences

    Sort a vector using an supplied element ordering function.

  10. vectorCodec :: ValueCodec input output -> ValueCodec (Vector input) (Vector output)

    autodocodec Autodocodec

    Vector codec Build a codec for vectors of values from a codec for a single value.

    Example usage

    >>> toJSONVia (vectorCodec codec) (Vector.fromList ['a','b'])
    Array [String "a",String "b"]
    

    API Note

    This is a forward-compatible version of ArrayOfCodec without a name.
    vectorCodec = ArrayOfCodec Nothing
    

Page 26 of many | Previous | Next