HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Package0.3.6.0Data Structures

nonempty-containers

Non-empty variants of containers data types, with full API

Modules

12 modules
  • Data.Containers.NonEmpty5Non-Empty Typeclass Provides the typeclass HasNonEmpty, which abstracts over different
  • Data.Containers.NonEmpty.List1Provides IsNonEmptyList, a non-empty analogue of IsList for the
  • Data.IntMap.NonEmpty130Non-Empty Finite Integer-Indexed Maps (lazy interface) The NEIntMap v type represents a non-empty finite map (sometimes
  • Data.IntSet.NonEmpty60Non-Empty Finite Integer Sets The NEIntSet type represents a non-empty set of integers. See documentation for NEIntSet for information on…
  • Data.Map.NonEmpty148Non-Empty Finite Maps (lazy interface) The NEMap k v type represents a non-empty finite map (sometimes
  • Data.Sequence.NonEmpty89Non-Empty Finite Sequences | An NESeq a is a non-empty (but finite) sequence of values of type
  • Data.Set.NonEmpty75Non-Empty Finite Sets The NESet e type represents a non-empty set of elements of type e.
Internal modules · 5

Description

Efficient and optimized non-empty versions of types from containers. Inspired by non-empty-containers library, except attempting a more faithful port (with under-the-hood optimizations) of the full containers API. Also contains a convenient typeclass abstraction for converting betwewen non-empty and possibly-empty variants. See README.md for more information.

Depends on

11 packages

Used by in this set · 1