Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
mono-traversable Data.Containers Apply a function over every key of a pair and run unionsWith over the results.
singletonMap :: IsMap map => ContainerKey map -> MapValue map -> mapmono-traversable Data.Containers Create a map from a single key-value pair.
updateMap :: IsMap map => (MapValue map -> Maybe (MapValue map)) -> ContainerKey map -> map -> mapmono-traversable Data.Containers Apply a function to the value of a given key. If the function returns Nothing, this deletes the key-value pair. Returns the input map when the key-value pair does not exist.
oconcatMap :: (MonoFoldable mono, Monoid m) => (Element mono -> m) -> mono -> mmono-traversable Data.MonoTraversable Synonym for ofoldMap
ofoldMap :: (MonoFoldable mono, Monoid m) => (Element mono -> m) -> mono -> mmono-traversable Data.MonoTraversable Map each element of a monomorphic container to a Monoid and combine the results.
ofoldMap1Ex :: (MonoFoldable mono, Semigroup m) => (Element mono -> m) -> mono -> mmono-traversable Data.MonoTraversable Map each element of a monomorphic container to a semigroup, and combine the results. Note: this is a partial function. On an empty MonoFoldable, it will throw an exception. See ofoldMap1 from Data.NonNull for a total version of this function.
omap :: MonoFunctor mono => (Element mono -> Element mono) -> mono -> monomono-traversable Data.MonoTraversable Map over a monomorphic container
-
mono-traversable Data.MonoTraversable Map each element of a monomorphic container to a monadic action, evaluate these actions from left to right, and collect the results.
omapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()mono-traversable Data.MonoTraversable Map each element of a monomorphic container to a monadic action, evaluate these actions from left to right, and ignore the results.
concatMap :: (MonoFoldable mono, Monoid m) => (Element mono -> m) -> mono -> mmono-traversable Data.MonoTraversable.Unprefixed Synonym for oconcatMap