Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. getMonoidalIntMap :: MonoidalIntMap a -> IntMap a

    monoidal-containers Data.IntMap.Monoidal

    No documentation available.

  2. newtype MonoidalIntMap a

    monoidal-containers Data.IntMap.Monoidal.Strict

    An IntMap with monoidal accumulation

  3. MonoidalIntMap :: IntMap a -> MonoidalIntMap a

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  4. getMonoidalIntMap :: MonoidalIntMap a -> IntMap a

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  5. data NEIntMap a

    nonempty-containers Data.IntMap.NonEmpty

    A non-empty (by construction) map from integer keys to values a. At least one key-value pair exists in an NEIntMap v at all times. Functions that take an NEIntMap can safely operate on it with the assumption that it has at least one key-value pair. Functions that return an NEIntMap provide an assurance that the result has at least one key-value pair. Data.IntMap.NonEmpty re-exports the API of Data.IntMap, faithfully reproducing asymptotics, typeclass constraints, and semantics. Functions that ensure that input and output maps are both non-empty (like insert) return NEIntMap, but functions that might potentially return an empty map (like delete) return a IntMap instead. You can directly construct an NEIntMap with the API from Data.IntMap.NonEmpty; it's more or less the same as constructing a normal IntMap, except you don't have access to empty. There are also a few ways to construct an NEIntMap from a IntMap:

    1. The nonEmptyMap smart constructor will convert a IntMap k a into a Maybe (NEIntMap k a), returning Nothing if the original IntMap was empty.
    2. You can use the insertIntMap family of functions to insert a value into a IntMap to create a guaranteed NEIntMap.
    3. You can use the IsNonEmpty and IsEmpty patterns to "pattern match" on a IntMap to reveal it as either containing a NEIntMap or an empty map.
    4. withNonEmpty offers a continuation-based interface for deconstructing a IntMap and treating it as if it were an NEIntMap.
    You can convert an NEIntMap into a IntMap with toMap or IsNonEmpty, essentially "obscuring" the non-empty property from the type.

  6. data NEIntMap a

    nonempty-containers Data.IntMap.NonEmpty.Internal

    A non-empty (by construction) map from integer keys to values a. At least one key-value pair exists in an NEIntMap v at all times. Functions that take an NEIntMap can safely operate on it with the assumption that it has at least one key-value pair. Functions that return an NEIntMap provide an assurance that the result has at least one key-value pair. Data.IntMap.NonEmpty re-exports the API of Data.IntMap, faithfully reproducing asymptotics, typeclass constraints, and semantics. Functions that ensure that input and output maps are both non-empty (like insert) return NEIntMap, but functions that might potentially return an empty map (like delete) return a IntMap instead. You can directly construct an NEIntMap with the API from Data.IntMap.NonEmpty; it's more or less the same as constructing a normal IntMap, except you don't have access to empty. There are also a few ways to construct an NEIntMap from a IntMap:

    1. The nonEmptyMap smart constructor will convert a IntMap k a into a Maybe (NEIntMap k a), returning Nothing if the original IntMap was empty.
    2. You can use the insertIntMap family of functions to insert a value into a IntMap to create a guaranteed NEIntMap.
    3. You can use the IsNonEmpty and IsEmpty patterns to "pattern match" on a IntMap to reveal it as either containing a NEIntMap or an empty map.
    4. withNonEmpty offers a continuation-based interface for deconstructing a IntMap and treating it as if it were an NEIntMap.
    You can convert an NEIntMap into a IntMap with toMap or IsNonEmpty, essentially "obscuring" the non-empty property from the type.

  7. NEIntMap :: Key -> a -> !IntMap a -> NEIntMap a

    nonempty-containers Data.IntMap.NonEmpty.Internal

    No documentation available.

  8. neimIntMap :: NEIntMap a -> !IntMap a

    nonempty-containers Data.IntMap.NonEmpty.Internal

    No documentation available.

  9. dmapToIntMap :: DMap (Const2 Key v) Identity -> IntMap v

    patch Data.Functor.Misc

    Convert a DMap to an IntMap

  10. newtype PatchIntMap a

    patch Data.Patch

    Patch for IntMap which represents insertion or deletion of keys in the mapping. Internally represented by 'IntMap (Maybe a)', where Just means insert/update and Nothing means delete.

Page 7 of many | Previous | Next