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.
-
ordered-containers Data.Map.Ordered.Strict Convert an OMap to a Map. O(n), where n is the size of the OMap.
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 implementation in Data.Parameterized.FinMap.Unsafe is backed by an IntMap, and must have a size of at most maxBound :: Int. This module uses unsafe operations like unsafeCoerce internally for the sake of time and space efficiency.
- The implementation in Data.Parameterized.FinMap.Safe is backed by an Map (Fin n). All of its functions are implemented using safe operations.
- 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.
-
parameterized-utils Data.Parameterized.FinMap.Safe -
parameterized-utils Data.Parameterized.FinMap.Unsafe fmapF :: FunctorF m => (forall (x :: k) . () => f x -> g x) -> m f -> m gparameterized-utils Data.Parameterized.TraversableF No documentation available.
fmapFDefault :: TraversableF t => (forall (s :: k) . () => e s -> f s) -> t e -> t fparameterized-utils Data.Parameterized.TraversableF This function may be used as a value for fmapF in a FunctorF instance.
foldMapF :: (FoldableF t, Monoid m) => (forall (s :: k) . () => e s -> m) -> t e -> mparameterized-utils Data.Parameterized.TraversableF Map each element of the structure to a monoid, and combine the results.
foldMapFDefault :: (TraversableF t, Monoid m) => (forall (s :: k) . () => e s -> m) -> t e -> mparameterized-utils Data.Parameterized.TraversableF This function may be used as a value for foldMap in a Foldable instance.
-
parameterized-utils Data.Parameterized.TraversableFC No documentation available.
-
parameterized-utils Data.Parameterized.TraversableFC This function may be used as a value for fmapF in a FunctorF instance.