summaryrefslogtreecommitdiff
path: root/compiler/cmm/CmmCommonBlockElimZ.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-07-24 21:08:25 +0000
committerIan Lynagh <igloo@earth.li>2009-07-24 21:08:25 +0000
commit1e50fd4185479a62e02d987bdfcb1c62712859ca (patch)
treeb586e107b36bd38cb7e93d7a6bd57191f4c46f15 /compiler/cmm/CmmCommonBlockElimZ.hs
parent52cacd61834e6f448b8904bfa52c4a5a402e8698 (diff)
downloadhaskell-1e50fd4185479a62e02d987bdfcb1c62712859ca.tar.gz
Remove GHC's haskell98 dependency
Diffstat (limited to 'compiler/cmm/CmmCommonBlockElimZ.hs')
-rw-r--r--compiler/cmm/CmmCommonBlockElimZ.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/cmm/CmmCommonBlockElimZ.hs b/compiler/cmm/CmmCommonBlockElimZ.hs
index 4c144cf63c..90e70080f2 100644
--- a/compiler/cmm/CmmCommonBlockElimZ.hs
+++ b/compiler/cmm/CmmCommonBlockElimZ.hs
@@ -11,10 +11,10 @@ import ZipCfg
import ZipCfgCmmRep
import Data.Bits
+import qualified Data.List as List
import Data.Word
import FastString
-import List hiding (iterate)
-import Monad
+import Control.Monad
import Outputable
import UniqFM
import Unique
@@ -56,7 +56,7 @@ type State = (UniqFM [CmmBlock], BidMap)
common_block :: (Outputable h, Uniquable h) => State -> (h, CmmBlock) -> (Bool, State)
common_block (bmap, subst) (hash, b) =
case lookupUFM bmap hash of
- Just bs -> case (find (eqBlockBodyWith (eqBid subst) b) bs,
+ Just bs -> case (List.find (eqBlockBodyWith (eqBid subst) b) bs,
lookupBlockEnv subst bid) of
(Just b', Nothing) -> addSubst b'
(Just b', Just b'') | blockId b' /= b'' -> addSubst b'