summaryrefslogtreecommitdiff
path: root/compiler/utils/ListSetOps.hs
diff options
context:
space:
mode:
authorDavid Feuer <david.feuer@gmail.com>2017-03-02 13:45:27 -0500
committerBen Gamari <ben@smart-cactus.org>2017-03-02 14:57:30 -0500
commitae67619853d029ea8049a114f44e59f4ca10b990 (patch)
treefc4e241b74248f72ba5d9a9e438eb3bb2d84e734 /compiler/utils/ListSetOps.hs
parent27a1b12f90b4b27763d22310215f0df34cbd702a (diff)
downloadhaskell-ae67619853d029ea8049a114f44e59f4ca10b990.tar.gz
Eliminate ListSetOps from imp_trust_pkgs
Eliminate ListSetOps from imp_trust_pkgs and imp_dep_pkgs Replace Map with NameEnv in TmOracle Reviewers: austin, dfeuer, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3113
Diffstat (limited to 'compiler/utils/ListSetOps.hs')
-rw-r--r--compiler/utils/ListSetOps.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/utils/ListSetOps.hs b/compiler/utils/ListSetOps.hs
index 4113566001..eaa79bd7fb 100644
--- a/compiler/utils/ListSetOps.hs
+++ b/compiler/utils/ListSetOps.hs
@@ -8,7 +8,7 @@
{-# LANGUAGE CPP #-}
module ListSetOps (
- unionLists, minusList, insertList,
+ unionLists, minusList,
-- Association lists
Assoc, assoc, assocMaybe, assocUsing, assocDefault, assocDefaultUsing,
@@ -41,10 +41,6 @@ getNth xs n = ASSERT2( xs `lengthExceeds` n, ppr n $$ ppr xs )
************************************************************************
-}
-insertList :: Eq a => a -> [a] -> [a]
--- Assumes the arg list contains no dups; guarantees the result has no dups
-insertList x xs | isIn "insert" x xs = xs
- | otherwise = x : xs
unionLists :: (Outputable a, Eq a) => [a] -> [a] -> [a]
-- Assumes that the arguments contain no duplicates