ghc-7.0.3: The GHC API

ListSetOps

# Documentation

unionLists :: Eq a => [a] -> [a] -> [a]

minusList :: Eq a => [a] -> [a] -> [a]

insertList :: Eq a => a -> [a] -> [a]

type Assoc a b = [(a, b)]

assoc :: Eq a => String -> Assoc a b -> a -> b

assocMaybe :: Eq a => Assoc a b -> a -> Maybe b

assocUsing :: (a -> a -> Bool) -> String -> Assoc a b -> a -> b

assocDefault :: Eq a => b -> Assoc a b -> a -> b

assocDefaultUsing :: (a -> a -> Bool) -> b -> Assoc a b -> a -> b

emptyAssoc :: Assoc a b

unitAssoc :: a -> b -> Assoc a b

mapAssoc :: (b -> c) -> Assoc a b -> Assoc a c

plusAssoc_C :: Eq a => (b -> b -> b) -> Assoc a b -> Assoc a b -> Assoc a b

extendAssoc_C :: Eq a => (b -> b -> b) -> Assoc a b -> (a, b) -> Assoc a b

mkLookupFun :: (key -> key -> Bool) -> [(key, val)] -> key -> Maybe val

findInList :: (a -> Bool) -> [a] -> Maybe a

assocElts :: Assoc a b -> [(a, b)]

hasNoDups :: Eq a => [a] -> Bool

runs :: (a -> a -> Bool) -> [a] -> [[a]]

removeDups :: (a -> a -> Ordering) -> [a] -> ([a], [[a]])

findDupsEq :: (a -> a -> Bool) -> [a] -> [[a]]

equivClasses :: (a -> a -> Ordering) -> [a] -> [[a]]

equivClassesByUniq :: (a -> Unique) -> [a] -> [[a]]