# vector

> Efficient Int-indexed arrays for Haskell, mutable and immutable, with loop fusion

Source: https://talira.ai/catalog/vector-h23drzvm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / data structures / arrays](https://talira.ai/categories/libraries/data-structures/arrays)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Haskell Libraries Team](https://talira.ai/orgs/haskell-libraries-team.md)

vector is the standard Haskell library for efficient Int-indexed arrays, both immutable and mutable. It has boxed vectors of any type, unboxed vectors with an adaptive representation, Storable vectors for passing memory to C, primitive vectors and a generic interface over them all, with a stream fusion framework that removes intermediate arrays from chains of operations.

## Links

- GitHub: https://github.com/haskell/vector

## Problems it solves

- Haskell lists are too slow for large numeric arrays
- fast unboxed arrays of Doubles or Ints in Haskell
- pass a contiguous array from Haskell to a C function without copying
- mutable arrays I can update in place inside ST or IO in Haskell

## Trust

Overall: 0.51 out of 1.
Signals: maintenance 0.75, adoption 0.52, momentum 0.17, community 0.79, backing 0.30, extensibility 0.00.

- last commit 28 days ago
- 22 commits in the last 90 days
- latest release v0.12.0.3 7.6 years ago
- 405 GitHub stars
- 93 contributors
- backed by Haskell Libraries Team

## Alternatives

- [primitive](https://talira.ai/catalog/primitive-1txb4m7z.md): Primitive memory-related operations for Haskell

## Sources

[^1]: https://github.com/haskell/vector/blob/master/LICENSE (checked 26 Nov 2026)
