Popularity
7.4
Declining
Activity
5.9
-
23
3
10

Monthly Downloads: 188
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data     NonEmpty    
Latest version: v0.2.1.0

nonempty-vector alternatives and similar packages

Based on the "nonempty" category.
Alternatively, view nonempty-vector alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of nonempty-vector or a related project?

Add another 'nonempty' Package

README

Non-empty Vectors

Build Status Hackage

This package presents thin wrappers around mutable and immutable Data.Vector types. 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.

Motivation

Every "container" in the Haskell ecosystem features a non-empty variant, including the venerable list, aside from vector. Many (including myself) use vector for its incredible performance characteristics achieved over many years by the CLC and authors of the library. But many of us also want to adhere to the principle of least power, and not have to worry about whether head or tail (for example) are safe. This package addresses both of the previous points. No new pointer indirection is exposed by this library except at construction (and even then - unsafe constructors are supplied), with as much reuse of vector's library as possible to make sure asymptotics stay the same.