HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulerio-0.1.22.0Haskell2010

RIO.Vector

Generic Vector interface. Import as:

import qualified RIO.Vector as V

This module does not export any partial or unsafe functions. For those, see RIO.Vector.Partial and RIO.Vector.Unsafe

  • 1 class
  • 152 values
  • Packagerio-0.1.22.0
  • Exports153
  • LanguageHaskell2010
  • LicenceMIT
  • SourceVector.hs

Immutable vectors

1 declaration
classclass MVector (Mutable v) a => Vector (v :: Type -> Type) a where
#
Instances46Vector, …

Accessors

0 declarations

Length information

Indexing

Extracting subvectors

Construction

0 declarations

Initialisation

Monadic initialisation

Unfolding

Enumeration

Concatenation

value(++) :: Vector v a => v a -> v a -> v a
#

Restricting memory usage

Modifying vectors

0 declarations

Permutations

Safe destructive update

Elementwise operations

0 declarations

Indexing

Mapping

Monadic mapping

Zipping

Monadic zipping

Unzipping

Working with predicates

0 declarations

Filtering

Partitioning

Searching

Folding

8 declarations
valuefoldl :: Vector v b => (a -> b -> a) -> a -> v b -> a
#
valuefoldl' :: Vector v b => (a -> b -> a) -> a -> v b -> a
#
valuefoldr :: Vector v a => (a -> b -> b) -> b -> v a -> b
#
valuefoldr' :: Vector v a => (a -> b -> b) -> b -> v a -> b
#

Specialised folds

Monadic folds

Monadic sequencing

Prefix sums (scans)

16 declarations

Conversions

0 declarations

Lists

Different vector types

Mutable vectors

Fusion support

0 declarations

Conversion to/from Bundles

Recycling support

Utilities

0 declarations

Comparisons

Show and Read

Data and Typeable

valuegfoldl
  1. :: (Vector v a, Data a)
  2. => forall d b. Data d => c (d -> b) -> d -> c b
  3. -> forall g. g -> c g
  4. -> v a
  5. -> c (v a)
#