This package presents thin wrappers around mutable and immutable Data.Vector types that enforce non-emptiness. The entire Vector API is supported for both sets of boxed vectors, with future plans to support unboxed, primitive, storable, and generic vectors.
There are no external dependencies that are not already in base.
Changes
Revision history for nonempty-vector
0.2.3
Support GHC 9.8.x
0.2.2.0
Drop support for GHC<8.10, update CI, bump bounds for primitive.
Added partitionWith from vector. (#11) - Thanks @AlistairB!
0.2.1.0
Added consV and snocV primitives for consing a vector to create a nonempty one. (#8) - Thanks @AlistairB!
Updated CI and cabal support
Expose constructors in new Data.Vector.NonEmpty.Internal module
Modules are now marked trustworthy
@since annotations have been added.
0.2.0.2
Removed spurious dependency on semigroups
0.2.0.1
Missed a strictness tick in postscanl'
INLINE pragma for slice
0.2.0.0
Remove naughty Generic, and Alternative instances as they can construct empty NonEmptyVectors
Handwritten Read and Read1 instances with safe cons