Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapF :: (IsList t, Item t ~ (k, v), Buildable k, Buildable v) => t -> Builderfmt Fmt A simple JSON-like map formatter; works for Map, HashMap, etc, as well as ordinary lists of pairs.
>>> mapF [("a", 1), ("b", 4)] "{a: 1, b: 4}"For multiline output, use jsonMapF.mapF' :: (IsList t, Item t ~ (k, v)) => (k -> Builder) -> (v -> Builder) -> t -> Builderfmt Fmt A version of mapF that lets you supply your own building function for keys and values.
mapF :: (IsList t, Item t ~ (k, v), Buildable k, Buildable v) => t -> Builderfmt Fmt.Internal.Formatters A simple JSON-like map formatter; works for Map, HashMap, etc, as well as ordinary lists of pairs.
>>> mapF [("a", 1), ("b", 4)] "{a: 1, b: 4}"For multiline output, use jsonMapF.mapF' :: (IsList t, Item t ~ (k, v)) => (k -> Builder) -> (v -> Builder) -> t -> Builderfmt Fmt.Internal.Formatters A version of mapF that lets you supply your own building function for keys and values.
mapExcept :: (Either e a -> Either e' b) -> Except e a -> Except e' bhasql Hasql.TestingKit.Preludes.Base Map the unwrapped computation using the given function.
mapExceptT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n bhasql Hasql.TestingKit.Preludes.Base Map the unwrapped computation using the given function.
runExceptT (mapExceptT f m) = f (runExceptT m)
mapKeys :: (Eq k', Hashable k') => (k -> k') -> InsOrdHashMap k v -> InsOrdHashMap k' vinsert-ordered-containers Data.HashMap.Strict.InsOrd Order preserving mapping of keys.
mapMaybe :: (v1 -> Maybe v2) -> InsOrdHashMap k v1 -> InsOrdHashMap k v2insert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.
mapMaybeWithKey :: (k -> v1 -> Maybe v2) -> InsOrdHashMap k v1 -> InsOrdHashMap k v2insert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.
mapWithKey :: (k -> v1 -> v2) -> InsOrdHashMap k v1 -> InsOrdHashMap k v2insert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.