Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
withIntMap :: SomeIntMap a -> (forall s . () => IntMap s a -> r) -> rrefined-containers Data.IntMap.Strict.Refined Apply a map with an unknown set of keys to a continuation that can accept a map with any set of keys. This gives you a way to refer to the set (the parameter s), e.g.:
withIntMap (fromIntMap ...) $ \(m :: IntMap s a) -> doSomethingWith @s
-
refined-containers Data.IntMap.Strict.Refined Apply a map with proof for an unknown set of keys to a continuation that can accept a map with any set of keys satisfying the proof. This gives you a way to refer to the set (the parameter s).