-----------------------------------------------------------------------------
---
+-- |
-- Module : Data.Set
-- Copyright : (c) The University of Glasgow 2001
--- License : BSD-style (see the file libraries/core/LICENSE)
+-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability : portable
--
--- $Id: Set.hs,v 1.1 2001/09/13 11:50:35 simonmar Exp $
---
-- This implementation of sets sits squarely upon Data.FiniteMap.
--
-----------------------------------------------------------------------------
mkSet, -- :: Ord a => [a] -> Set a
setToList, -- :: Set a -> [a]
unitSet, -- :: a -> Set a
- singletonSet, -- :: a -> Set a
union, -- :: Ord a => Set a -> Set a -> Set a
unionManySets, -- :: Ord a => [Set a] -> Set a
unitSet :: a -> Set a
unitSet x = MkSet (unitFM x ())
-{-# DEPRECATED singletonSet "use Set.unitSet" #-}
-singletonSet = unitSet -- old;deprecated.
-
setToList :: Set a -> [a]
setToList (MkSet set) = keysFM set