ListSetOps

ghc-7.10.3: The GHC API

Safe Haskell | None
Language | Haskell2010

ListSetOps

# Documentation

unionLists :: (Outputable a, 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

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]]

getNth :: Outputable a => [a] -> Int -> a