Skip to content
Cinch
← Data.Set API referenceSAMPLE LISTING
cinch-collections / 0.2.1Data/Set.cinch

Declaration source.

This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.

module Data.Set where
3-- A collection containing each value at most once.
4opaque Set a
5
6-- Construct an empty set.
7empty :: forall a. Set a
8
9-- Test whether the set contains a value.
10member :: forall a. using (ord :: Ord a) => a -> Set a -> Bool
12-- Combine two sets, retaining each value once.
13union :: forall a. using (ord :: Ord a) => Set a -> Set a -> Set a