summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Opt/CallerCC.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-20 16:15:44 -0400
committerBen Gamari <ben@smart-cactus.org>2021-05-29 11:58:45 -0400
commitec64624768735df24f1b6fe24a2b2e59172cc613 (patch)
treead2a86f46427a701d3d604c01cd763ed52b205cd /compiler/GHC/Core/Opt/CallerCC.hs
parent42c611cffb2387627f80e790f1d175ebad7d9992 (diff)
downloadhaskell-ec64624768735df24f1b6fe24a2b2e59172cc613.tar.gz
Use GHC's State monad consistently
GHC's internal State monad benefits from oneShot annotations on its state, allowing for more aggressive eta expansion. We currently don't have monad transformers with the same optimisation, so we only change uses of the pure State monad here. See #19657 and 19380. Metric Decrease: hie002
Diffstat (limited to 'compiler/GHC/Core/Opt/CallerCC.hs')
-rw-r--r--compiler/GHC/Core/Opt/CallerCC.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Opt/CallerCC.hs b/compiler/GHC/Core/Opt/CallerCC.hs
index aeffe2c034..3c47da66af 100644
--- a/compiler/GHC/Core/Opt/CallerCC.hs
+++ b/compiler/GHC/Core/Opt/CallerCC.hs
@@ -20,7 +20,7 @@ import Data.Maybe
import qualified Text.Parsec as P
import Control.Applicative
-import Control.Monad.Trans.State.Strict
+import GHC.Utils.Monad.State.Strict
import Data.Either
import Control.Monad