graphql-engine/server/src-lib/Data/IntMap/Strict/Extended.hs
Antoine Leblanc f96b889401 Replace all occurrences of mapMaybe id by catMaybes.
### Description

Several libraries define `catMaybes` as `mapMaybe id`. We had it defined in `Data.HashMap.Strict.Extended` already. This small PR also defines it in `Extended` modules for other containers and replaces every occurrence of `mapMaybe id` accordingly.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3884
GitOrigin-RevId: d222a2ca2f4eb9b725b20450a62a626d3886dbf4
2022-03-03 20:13:10 +00:00

12 lines
190 B
Haskell

module Data.IntMap.Strict.Extended
( module M,
catMaybes,
)
where
import Data.IntMap.Strict as M
import Prelude
catMaybes :: IntMap (Maybe v) -> IntMap v
catMaybes = M.mapMaybe id