HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Modulerio-0.1.25.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

Contents
  1. Immutable vectors
  2. Accessors
  3. Length information
  4. Indexing
  5. Extracting subvectors
  6. Construction
  7. Initialisation
  8. Monadic initialisation
  9. Unfolding
  10. Enumeration
  11. Concatenation
  12. Restricting memory usage
  13. Modifying vectors
  14. Permutations
  15. Safe destructive update
  16. Elementwise operations
  17. Indexing
  18. Mapping
  19. Monadic mapping
  20. Zipping
  21. Monadic zipping
  22. Unzipping
  23. Working with predicates
  24. Filtering
  25. Partitioning
  26. Searching
  27. Folding
  28. Specialised folds
  29. Monadic folds
  30. Monadic sequencing
  31. Prefix sums (scans)
  32. Conversions
  33. Lists
  34. Different vector types
  35. Mutable vectors
  36. Fusion support
  37. Conversion to/from Bundles
  38. Recycling support
  39. Utilities
  40. Comparisons
  41. Show and Read
  42. Data and Typeable
Synopsis
  • Packagerio-0.1.25.0
  • Exports153
  • LanguageHaskell2010
  • LicenceMIT
  • SourceVector.hs

Immutable vectors

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

Accessors

Length information

Indexing

Extracting subvectors

Construction

Initialisation

Monadic initialisation

Unfolding

Enumeration

Concatenation

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

Restricting memory usage

Modifying vectors

Permutations

Safe destructive update

Elementwise operations

Indexing

Mapping

Monadic mapping

Zipping

Monadic zipping

Unzipping

Working with predicates

Filtering

Partitioning

Searching

Folding

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)

Conversions

Lists

Different vector types

Mutable vectors

Fusion support

Conversion to/from Bundles

Recycling support

Utilities

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)
#