X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=ghc%2Fcompiler%2Futils%2FListSetOps.lhs;fp=ghc%2Fcompiler%2Futils%2FListSetOps.lhs;h=92cbfc56e80f1a5954ce26b20c5c5173efd23180;hp=dfa2cd023f67bec16d96c98e6eb73c0768ef77f7;hb=be33dbc967b4915cfdb0307ae1b7ae3cee651b8c;hpb=c29022c49449b7d8862dcc2259e16cafe9461945 diff --git a/ghc/compiler/utils/ListSetOps.lhs b/ghc/compiler/utils/ListSetOps.lhs index dfa2cd0..92cbfc5 100644 --- a/ghc/compiler/utils/ListSetOps.lhs +++ b/ghc/compiler/utils/ListSetOps.lhs @@ -13,36 +13,13 @@ module ListSetOps ( #include "HsVersions.h" -import Util ( isIn, isn'tIn ) +import Util ( isn'tIn ) import List ( union ) \end{code} \begin{code} unionLists :: (Eq a) => [a] -> [a] -> [a] -#ifdef REALLY_HASKELL_1_3 unionLists = union -#else -unionLists [] [] = [] -unionLists [] b = b -unionLists a [] = a -unionLists (a:as) b - | a `is_elem` b = unionLists as b - | otherwise = a : unionLists as b - where - is_elem = isIn "unionLists" -#endif - -{- UNUSED -intersectLists :: (Eq a) => [a] -> [a] -> [a] -intersectLists [] [] = [] -intersectLists [] b = [] -intersectLists a [] = [] -intersectLists (a:as) b - | a `is_elem` b = a : intersectLists as b - | otherwise = intersectLists as b - where - is_elem = isIn "intersectLists" --} \end{code} Everything in the first list that is not in the second list: