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.
asSet :: KnownIntSet s => Set s Intrefined-containers Data.IntSet.Refined Convert an IntSet into a Set, retaining its set of elements, which can be converted with castFlavor.
fromIntSet :: IntSet -> SomeIntSetrefined-containers Data.IntSet.Refined Construct a set from a regular IntSet.
isSubsetOf :: (KnownIntSet s, KnownIntSet t) => Maybe (SubsetProof 'Int s t)refined-containers Data.IntSet.Refined If s is a subset of t (or is equal to), return a proof of that.
-
refined-containers Data.IntSet.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).
withIntSet :: SomeIntSet -> (forall s . KnownIntSet s => Proxy s -> r) -> rrefined-containers Data.IntSet.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.:
withIntSet (fromIntSet ...) $ \(_ :: Proxy s) -> doSomethingWith @s
withIntSetWith :: forall r p . SomeIntSetWith p -> (forall s . KnownIntSet s => p s -> r) -> rrefined-containers Data.IntSet.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.Map.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.Map.Refined newtype
SupersetProof (f :: Flavor) s rrefined-containers Data.Map.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.Map.Refined