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.
data
SomeHashSetWith (p :: Type -> Type) arefined-containers Data.HashSet.Refined An existential wrapper for an as-yet-unknown set, together with a proof of some fact p about the set. Pattern matching on it gives you a way to refer to the set (the parameter s). Most functions will return a set in this way, together with a proof that somehow relates the set to the function's inputs.
SomeHashSetWith :: forall s a (p :: Type -> Type) . KnownHashSet s a => !p s -> SomeHashSetWith p arefined-containers Data.HashSet.Refined No documentation available.
newtype
SubsetProof (f :: Flavor) s rrefined-containers Data.HashSet.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.HashSet.Refined newtype
SupersetProof (f :: Flavor) s rrefined-containers Data.HashSet.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.HashSet.Refined asIntSet :: KnownHashSet s Int => IntSet srefined-containers Data.HashSet.Refined Convert an IntSet into a HashSet, retaining its set of elements, which can be converted with castFlavor.
asSet :: forall s a . (Ord a, KnownHashSet s a) => Set s arefined-containers Data.HashSet.Refined Convert an IntSet into a Set, retaining its set of elements, which can be converted with castFlavor.
fromHashSet :: HashSet a -> SomeHashSet arefined-containers Data.HashSet.Refined Construct a set from a regular HashSet.
-
refined-containers Data.HashSet.Refined If s is a subset of t (or is equal to), return a proof of that.