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.
fromSet :: KnownHashSet s k => (Key s k -> a) -> HashMap s k arefined-containers Data.HashMap.Strict.Refined Create a map from a set of keys, and a function that for each key computes the corresponding value.
keysSet :: HashMap s k a -> HashSet s krefined-containers Data.HashMap.Strict.Refined Return the set of keys in the map, with the contents of the set still tracked by the s parameter. See Data.HashSet.Refined.
type
HashSet s a = Dict KnownHashSet s arefined-containers Data.HashSet.Refined A HashSet whose contents are tracked by the type parameter s. This is a "singleton": for a given s there's only one value of this type. Since this is just a Dict, you can freely convert between the value (HashSet) and the constraint (KnownHashSet). This library prefers to use the constraint.
-
refined-containers Data.HashSet.Refined A predicate for use with Refined, verifying that a value is an element of the set s.
InSet :: InSet (f :: Flavor) srefined-containers Data.HashSet.Refined No documentation available.
type
KnownHashSet s a = Reifies s HashSet arefined-containers Data.HashSet.Refined A constraint evidencing that we know the contents of the set s at runtime. Whenever you see this constraint on a function, there is an actual HashSet a being passed around at runtime. Given this constraint, to obtain a regular HashSet a you can use reflect.
data
Some2HashSetWith (p :: Type -> Type -> Type) arefined-containers Data.HashSet.Refined An existential wrapper for an as-yet-unknown pair of sets, together with a proof of some fact p relating them.
-
refined-containers Data.HashSet.Refined No documentation available.
-
refined-containers Data.HashSet.Refined An existential wrapper for an as-yet-unknown set. Pattern maching on it gives you a way to refer to the set, e.g.
case fromHashSet ... of SomeHashSet @s _ -> doSomethingWith @s case fromHashSet ... of SomeHashSet (_ :: Proxy# s) -> doSomethingWith @s
SomeHashSet :: forall s a . KnownHashSet s a => Proxy# s -> SomeHashSet arefined-containers Data.HashSet.Refined No documentation available.