Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
containers Data.Map.Strict.Internal The set of all keys of the map.
keysSet (fromList [(5,"a"), (3,"b")]) == Data.Set.fromList [3,5] keysSet empty == Data.Set.empty
isProperSubsetOf :: Ord a => Set a -> Set a -> Boolcontainers Data.Set (s1 `isProperSubsetOf` s2) indicates whether s1 is a proper subset of s2.
s1 `isProperSubsetOf` s2 = s1 `isSubsetOf` s2 && s1 /= s2
isSubsetOf :: Ord a => Set a -> Set a -> Boolcontainers Data.Set (s1 `isSubsetOf` s2) indicates whether s1 is a subset of s2.
s1 `isSubsetOf` s2 = all (`member` s2) s1 s1 `isSubsetOf` s2 = null (s1 `difference` s2) s1 `isSubsetOf` s2 = s1 `union` s2 == s2 s1 `isSubsetOf` s2 = s1 `intersection` s2 == s1
powerSet :: Set a -> Set (Set a)containers Data.Set Calculate the power set of a set: the set of all its subsets.
t `member` powerSet s == t `isSubsetOf` s
Example:powerSet (fromList [1,2,3]) = fromList $ map fromList [[],[1],[1,2],[1,2,3],[1,3],[2],[2,3],[3]]
isProperSubsetOf :: Ord a => Set a -> Set a -> Boolcontainers Data.Set.Internal (s1 `isProperSubsetOf` s2) indicates whether s1 is a proper subset of s2.
s1 `isProperSubsetOf` s2 = s1 `isSubsetOf` s2 && s1 /= s2
isSubsetOf :: Ord a => Set a -> Set a -> Boolcontainers Data.Set.Internal (s1 `isSubsetOf` s2) indicates whether s1 is a subset of s2.
s1 `isSubsetOf` s2 = all (`member` s2) s1 s1 `isSubsetOf` s2 = null (s1 `difference` s2) s1 `isSubsetOf` s2 = s1 `union` s2 == s2 s1 `isSubsetOf` s2 = s1 `intersection` s2 == s1
powerSet :: Set a -> Set (Set a)containers Data.Set.Internal Calculate the power set of a set: the set of all its subsets.
t `member` powerSet s == t `isSubsetOf` s
Example:powerSet (fromList [1,2,3]) = fromList $ map fromList [[],[1],[1,2],[1,2,3],[1,3],[2],[2,3],[3]]
reset :: Cont r r -> Cont r' rtransformers Control.Monad.Trans.Cont resetT :: forall (m :: Type -> Type) r r' . Monad m => ContT r m r -> ContT r' m rtransformers Control.Monad.Trans.Cont -
tasty Test.Tasty.Options A set of options. Only one option of each type can be kept. If some option has not been explicitly set, the default value is used.