Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapToList :: IsMap map => map -> [(ContainerKey map, MapValue map)]mono-traversable Data.Containers Convert a map to a list of key-value pairs.
mapWithKey :: IsMap map => (ContainerKey map -> MapValue map -> MapValue map) -> map -> mapmono-traversable Data.Containers Apply a function over every key-value pair of a map.
mapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()mono-traversable Data.MonoTraversable.Unprefixed Synonym for omapM_
mapNonNull :: (Functor f, MonoFoldable (f b)) => (a -> b) -> NonNull (f a) -> NonNull (f b)mono-traversable Data.NonNull mapMaybe :: (a -> Maybe b) -> [a] -> [b]strict Data.Strict.Maybe Analogous to mapMaybe in Data.Maybe.
mapToDecoder :: (b -> a) -> Codec context any b -> Codec context Void aautodocodec Autodocodec Map a codec for decoding bs into a decoder for as. This is useful for building discriminatedUnionCodecs.
mapToEncoder :: b -> Codec context b any -> Codec context a ()autodocodec Autodocodec Wrap up a value of type b with its codec to produce and encoder for as that ignores its input and instead encodes the value b. This is useful for building discriminatedUnionCodecs.
mapCodec :: (Ord k, FromJSONKey k, ToJSONKey k) => JSONCodec v -> JSONCodec (Map k v)autodocodec Autodocodec.Codec Encode a Map, and decode any Map.
API Note
This is a forward-compatible version of MapCodec.mapCodec = MapCodec
mapToDecoder :: (b -> a) -> Codec context any b -> Codec context Void aautodocodec Autodocodec.Codec Map a codec for decoding bs into a decoder for as. This is useful for building discriminatedUnionCodecs.
mapToEncoder :: b -> Codec context b any -> Codec context a ()autodocodec Autodocodec.Codec Wrap up a value of type b with its codec to produce and encoder for as that ignores its input and instead encodes the value b. This is useful for building discriminatedUnionCodecs.