mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
f96b889401
### 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
12 lines
190 B
Haskell
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
|