strict-containers: Strict containers.

[ bsd3, data, data-structures, library ] [ Propose Tags ]

This package provides strict versions of some standard Haskell containers - including HashMap, IntMap, Map, Sequence, and Vector.

The reasoning is the same as that for our strict package - though some containers already define strict operations that force their inputs, the underlying data type is shared between the lazy and strict variants, i.e. by default lazy. In particular, instances are defined lazily on the common type, meaning that external utilities such as lens, optics, and deserialisation instances e.g. for binary and serialise, all work lazily and there is not even the option to go strict.

This package defines separate data types, to avoid these problems. Instances can then be defined on these fully-strict data types.

To be clear, the "strict" vs "lazy" discussion refers to the values of a map or the elements of a sequence. The standard variants of these data structures that can be lazy-or-strict are already always-strict in their keys (for maps) and lengths (for sequences) respectively. This is also why we don't define strict variants of sets here, since the standard variants are already strict in their elements.

Note: generally, instances for strict containers violate their respective laws in the presence of bottom (undefined, error, infinite-loop). In the absence of bottom, laws are preserved.

This library mirrors the API of the standard lazy-or-strict variants in containers and unordered-containers, including methods and fundamental instances. It also contains instances for binary and indexed-traversable. More instances are defined in other packages, e.g. strict-containers-lens and strict-containers-serialise.

The current version of this library has been autogenerated from:

Versions [RSS] [faq] 0.1
Change log
Dependencies array (>=, base (>= && <5), binary (>= && <0.9), containers (>= && <0.7), deepseq (>=1.2 && <1.5), hashable (>= && <1.4), indexed-traversable (>=0.1.1 && <0.2), primitive (>= && <0.8), strict (==0.4.*), unordered-containers (==0.2.*), vector (==0.12.*), vector-binary-instances (==0.2.*) [details]
License BSD-3-Clause
Copyright (c) 2021 by Ximin Luo
Maintainer Ximin Luo <>
Category Data, Data Structures
Home page
Uploaded by infinity0 at 2021-04-20T14:45:13Z
Distributions NixOS:0.1
Downloads 45 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-04-20 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees