Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
refined-containers Data.HashSet.Refined Apply a pair of unknown sets with proof to a continuation that can accept any pair of sets satisfying the proof. This gives you a way to refer to the sets (the parameters s and t).
withHashSet :: SomeHashSet a -> (forall s . KnownHashSet s a => Proxy s -> r) -> rrefined-containers Data.HashSet.Refined Apply an unknown set to a continuation that can accept any set. This gives you a way to refer to the set (the parameter s), e.g.:
withHashSet (fromHashSet ...) $ \(_ :: Proxy s) -> doSomethingWith @s
-
refined-containers Data.HashSet.Refined Apply an unknown set with proof to a continuation that can accept any set satisfying the proof. This gives you a way to refer to the set (the parameter s).
newtype
SubsetProof (f :: Flavor) s rrefined-containers Data.IntMap.Refined Proof that s is a subset of the set r.
SubsetProof :: (InSet f s :-> InSet f r) -> SubsetProof (f :: Flavor) s rrefined-containers Data.IntMap.Refined newtype
SupersetProof (f :: Flavor) s rrefined-containers Data.IntMap.Refined Proof that s is a superset of the set r.
SupersetProof :: (InSet f r :-> InSet f s) -> SupersetProof (f :: Flavor) s rrefined-containers Data.IntMap.Refined fromSet :: KnownIntSet s => (Key s -> a) -> IntMap s arefined-containers Data.IntMap.Refined Create a map from a set of keys, and a function that for each key computes the corresponding value.
keysSet :: IntMap s a -> IntSet srefined-containers Data.IntMap.Refined Return the set of keys in the map, with the contents of the set still tracked by the s parameter. See Data.IntSet.Refined.
newtype
SubsetProof (f :: Flavor) s rrefined-containers Data.IntMap.Strict.Refined Proof that s is a subset of the set r.