modular-prelude-0.3.0.0: A new Prelude featuring first class modules

Safe HaskellNone

ModularPrelude.Module.Set

Contents

Description

This module provides a first-class version of the Data.Set module.

Synopsis

Module interface

data SetModule Source

Constructors

Set 

Fields

map :: forall a b. (Ord a, Ord b) => (a -> b) -> Set a -> Set b
 
filter :: forall a. (a -> Bool) -> Set a -> Set a
 
length :: forall a. Set a -> Int
 
singleton :: forall a. a -> Set a
 
null :: forall a. Set a -> Bool
 
pack :: forall a. Ord a => [a] -> Set a
 
unpack :: forall a. Set a -> [a]
 
fromList :: forall a. Ord a => [a] -> Set a
 
toList :: forall a. Set a -> [a]
 
empty :: forall a. Set a
 
insert :: forall a. Ord a => a -> Set a -> Set a
 
delete :: forall a. Ord a => a -> Set a -> Set a
 
member :: forall a. Ord a => a -> Set a -> Bool
 

Module contents

class SetImplements interface whereSource

Methods

_Data_Set_ :: interfaceSource