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

Safe HaskellNone

ModularPrelude.Module.HashSet

Contents

Description

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

Synopsis

Module interface

data HashSetModule Source

Constructors

HashSet 

Fields

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

Module contents

class HashSetImplements interface whereSource

Methods

_Data_HashSet_ :: interfaceSource