Hoogle Search
Within Stackage Nightly 2025-10-07 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
isProperSubsetOf :: IntSet -> IntSet -> Boolintern Data.Interned.IntSet O(n+m). Is this a proper subset? (ie. a subset but not equal).
isSubsetOf :: IntSet -> IntSet -> Boolintern Data.Interned.IntSet O(n+m). Is this a subset? (s1 isSubsetOf s2) tells whether s1 is a subset of s2.
unsafeSet :: Int -> a -> Array a % 1 -> Array alinear-base Data.Array.Mutable.Linear Same as set, but does not do bounds-checking. The behaviour is undefined if an out-of-bounds index is provided.
unsafeSet :: HasCallStack => Int -> a -> Vector a % 1 -> Vector alinear-base Data.Vector.Mutable.Linear Same as write, but does not do bounds-checking. The behaviour is undefined when passed an invalid index.
clientStoreClientIdSet :: ClientStore ci si a -> Set cimergeful Data.Mergeful.Collection The set of client ids. These are only the client ids of the added items that have not been synced yet.
clientStoreSyncIdSet :: Ord si => ClientStore ci si a -> Set simergeful Data.Mergeful.Collection The set of server ids. This includes the ids of items that have been marked as deleted.
clientStoreUndeletedSyncIdSet :: Ord si => ClientStore ci si a -> Set simergeful Data.Mergeful.Collection The set of server ids. This does not include the ids of items that have been marked as deleted.
reverseTakeFromEndG :: (Integral b, InsertLeft t a, Monoid (t a)) => b -> t a -> t amonoid-insertleft Data.InsertLeft Inspired by: Graham Hutton. A tutorial on the universality and expressiveness of fold. J. Functional Programming 9 (4): 355–372, July 1999. that is available at the URL: https://www.cs.nott.ac.uk/~pszgmh/fold.pdf. Takes the specified quantity from the right end of the structure and then reverses the result.
reverseTakeG :: (Integral b, InsertLeft t a, Monoid (t a)) => b -> t a -> t amonoid-insertleft Data.InsertLeft Inspired by: Graham Hutton. A tutorial on the universality and expressiveness of fold. J. Functional Programming 9 (4): 355–372, July 1999. that is available at the URL: https://www.cs.nott.ac.uk/~pszgmh/fold.pdf. Is analogous to the taking the specified quantity from the structure and then reversing the result. Uses strict variant of the foldl, so is not suitable for large amounts of data. Not recommended for performance reasons. For lists just use the combination (reverse . take n).
fromSet :: MonoidNull v => (k -> v) -> Set k -> MonoidMap k vmonoidmap-internal Data.MonoidMap.Internal Constructs a MonoidMap from a Set and a function from keys to values. Satisfies the following property for all possible keys k:
get k (fromSet f ks) == if Set.member k ks then f k else mempty
This function performs canonicalisation of null values, and has a time complexity that is linear in the size of the set.