summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2014-09-25 23:10:33 -0500
committerAustin Seipp <austin@well-typed.com>2014-09-25 23:10:33 -0500
commita7ec061ed3c4373b0b47d6779d2fd259ad712b5e (patch)
tree257f2520d07f30f9611d398351cc4503c6c670c0
parentdc1fce13633e44c6068eb76fc7ed48e94feb5e32 (diff)
downloadhaskell-a7ec061ed3c4373b0b47d6779d2fd259ad712b5e.tar.gz
Delete hack that was once needed to fix the build
Summary: Introduced in 6c7b41cc2b24f533697a62bf1843507ae043fc97. I checked the rest of that commit, and this is all that was left to revert. Test Plan: x Reviewers: ezyang, austin Reviewed By: ezyang, austin Subscribers: simonmar, ezyang, carter, thomie Differential Revision: https://phabricator.haskell.org/D241
-rw-r--r--compiler/nativeGen/RegAlloc/Graph/Spill.hs1
-rw-r--r--compiler/nativeGen/RegAlloc/Liveness.hs1
-rw-r--r--compiler/utils/State.hs8
3 files changed, 7 insertions, 3 deletions
diff --git a/compiler/nativeGen/RegAlloc/Graph/Spill.hs b/compiler/nativeGen/RegAlloc/Graph/Spill.hs
index 543db1114a..802046c519 100644
--- a/compiler/nativeGen/RegAlloc/Graph/Spill.hs
+++ b/compiler/nativeGen/RegAlloc/Graph/Spill.hs
@@ -13,6 +13,7 @@ import Reg
import Cmm hiding (RegSet)
import BlockId
+import MonadUtils
import State
import Unique
import UniqFM
diff --git a/compiler/nativeGen/RegAlloc/Liveness.hs b/compiler/nativeGen/RegAlloc/Liveness.hs
index d7fd8bdcb4..167197d7c2 100644
--- a/compiler/nativeGen/RegAlloc/Liveness.hs
+++ b/compiler/nativeGen/RegAlloc/Liveness.hs
@@ -44,6 +44,7 @@ import PprCmm()
import Digraph
import DynFlags
+import MonadUtils
import Outputable
import Platform
import UniqSet
diff --git a/compiler/utils/State.hs b/compiler/utils/State.hs
index 216034fdbf..7346841613 100644
--- a/compiler/utils/State.hs
+++ b/compiler/utils/State.hs
@@ -1,8 +1,10 @@
-{-# LANGUAGE UnboxedTuples #-}
+{-# LANGUAGE UnboxedTuples, CPP #-}
-module State (module State, mapAccumLM {- XXX hack -}) where
+module State where
-import MonadUtils
+#if __GLASGOW_HASKELL__ < 709
+import Control.Applicative
+#endif
newtype State s a = State { runState' :: s -> (# a, s #) }