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.
-
parameterized-utils Data.Parameterized.TraversableFC Map each element of the structure to a monoid, and combine the results.
-
parameterized-utils Data.Parameterized.TraversableFC This function may be used as a value for foldMap in a Foldable instance.
-
parameterized-utils Data.Parameterized.TraversableFC.WithIndex Like foldMapFC, but with an index.
foldMapFC f ≡ ifoldMapFC (const f)
-
parameterized-utils Data.Parameterized.TraversableFC.WithIndex Like fmapFC, but with an index.
fmapFC f ≡ imapFC (const f)
contextMap :: (PointedList a -> b) -> PointedList a -> PointedList bpointedlist Data.List.PointedList Map over the PointedLists created via positions, such that f is called with each element of the list focused in the provided PointedList. An example makes this easier to understand:
contextMap atStart (fromJust $ fromList [1..5])
contextMap :: (PointedList a -> b) -> PointedList a -> PointedList bpointedlist Data.List.PointedList.Circular Map over the PointedLists created via positions, such that f is called with each element of the list focused in the provided PointedList. An example makes this easier to understand:
contextMap atStart (fromJust $ fromList [1..5])
foldMapBuilder :: Vector v a => (a -> Builder) -> v a -> Builderproto-lens Data.ProtoLens.Encoding.Bytes Loop over the elements of a vector and concatenate the resulting Builders. This function has been hand-tuned to perform better than a naive implementation using, e.g., Vector.foldr or a manual loop.
unsafeMapMonotonic :: (k -> p -> v -> (q, w)) -> HashPSQ k p v -> HashPSQ k q wpsqueues Data.HashPSQ O(n) Maps a function over the values and priorities of the queue. The function f must be monotonic with respect to the priorities. I.e. if x < y, then fst (f k x v) < fst (f k y v). The precondition is not checked. If f is not monotonic, then the result will be invalid.
unsafeMapMonotonic :: (Key -> p -> v -> (q, w)) -> IntPSQ p v -> IntPSQ q wpsqueues Data.IntPSQ O(n) Maps a function over the values and priorities of the queue. The function f must be monotonic with respect to the priorities. I.e. if x < y, then fst (f k x v) < fst (f k y v). The precondition is not checked. If f is not monotonic, then the result will be invalid.
unsafeMapMonotonic :: forall k p q v w . (k -> p -> v -> (q, w)) -> OrdPSQ k p v -> OrdPSQ k q wpsqueues Data.OrdPSQ O(n) Maps a function over the values and priorities of the queue. The function f must be monotonic with respect to the priorities. I.e. if x < y, then fst (f k x v) < fst (f k y v). The precondition is not checked. If f is not monotonic, then the result will be invalid.