ghc-8.0.0.20160421: The GHC API

Safe HaskellNone
LanguageHaskell2010

ListSetOps

Documentation

unionLists :: (Outputable a, Eq a) => [a] -> [a] -> [a] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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