Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. toMap :: OMap k v -> Map k v

    ordered-containers Data.Map.Ordered.Strict

    Convert an OMap to a Map. O(n), where n is the size of the OMap.

  2. module Data.Parameterized.FinMap

    FinMap n a conceptually (see NOTE) a map with Fin n keys, implying a maximum size of n. Here's how FinMap compares to other map-like types:

    • FinMap n a is conceptually isomorphic to a Vector n (Maybe a), but can be more space-efficient especially if n is large and the vector is populated with a small number of Just values.
    • FinMap is less general than Map, because it has a fixed key type (Fin n).
    • FinMap n a is similar to IntMap a, but it provides a static guarantee of a maximum size, and its operations (such as size) allow the recovery of more type-level information.
    • FinMap is dissimilar from Data.Parameterized.Map.MapF in that neither the key nor value type of FinMap is parameterized.
    The type parameter n doesn't track the current number of key-value pairs in a FinMap n (i.e., the size of the map), but rather an upper bound. insert and delete don't alter n, whereas incMax does - despite the fact that it has no effect on the keys and values in the FinMap. The FinMap interface has two implementations: The implementation in FinMap is property tested against that in FinMap to ensure they have the same behavior. In this documentation, W is used in big-O notations the same way as in the Data.IntMap documentation. NOTE: Where the word "conceptually" is used, it implies that this correspondence is not literally true, but is true modulo some details such as differences between bounded types like Int and unbounded types like Integer. Several of the functions in both implementations are marked INLINE or INLINABLE. There are three reasons for this:
    • Some of these just have very small definitions and so inlining is likely more beneficial than harmful.
    • Some participate in RULES relevant to functions used in their implementations.
    • They are thin wrappers (often just newtype wrappers) around functions marked INLINE, which should therefore also be inlined.

  3. data FinMap (n :: Nat) a

    parameterized-utils Data.Parameterized.FinMap.Safe

    FinMap n a is a map with Fin n keys and a values.

  4. data FinMap (n :: Nat) a

    parameterized-utils Data.Parameterized.FinMap.Unsafe

    FinMap n a is a map with Fin n keys and a values.

  5. fmapF :: FunctorF m => (forall (x :: k) . () => f x -> g x) -> m f -> m g

    parameterized-utils Data.Parameterized.TraversableF

    No documentation available.

  6. fmapFDefault :: TraversableF t => (forall (s :: k) . () => e s -> f s) -> t e -> t f

    parameterized-utils Data.Parameterized.TraversableF

    This function may be used as a value for fmapF in a FunctorF instance.

  7. foldMapF :: (FoldableF t, Monoid m) => (forall (s :: k) . () => e s -> m) -> t e -> m

    parameterized-utils Data.Parameterized.TraversableF

    Map each element of the structure to a monoid, and combine the results.

  8. foldMapFDefault :: (TraversableF t, Monoid m) => (forall (s :: k) . () => e s -> m) -> t e -> m

    parameterized-utils Data.Parameterized.TraversableF

    This function may be used as a value for foldMap in a Foldable instance.

  9. fmapFC :: FunctorFC t => (forall (x :: k) . () => f x -> g x) -> forall (x :: l) . () => t f x -> t g x

    parameterized-utils Data.Parameterized.TraversableFC

    No documentation available.

  10. fmapFCDefault :: TraversableFC t => forall (f :: k -> Type) (g :: k -> Type) . () => (forall (x :: k) . () => f x -> g x) -> forall (x :: l) . () => t f x -> t g x

    parameterized-utils Data.Parameterized.TraversableFC

    This function may be used as a value for fmapF in a FunctorF instance.

Page 581 of many | Previous | Next