summaryrefslogtreecommitdiff
path: root/testsuite
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 /testsuite
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 'testsuite')
-rw-r--r--testsuite/tests/parser/should_run/CountAstDeps.stdout1
-rw-r--r--testsuite/tests/parser/should_run/CountParserDeps.stdout1
2 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_run/CountAstDeps.stdout b/testsuite/tests/parser/should_run/CountAstDeps.stdout
index e33094795a..d17ccda974 100644
--- a/testsuite/tests/parser/should_run/CountAstDeps.stdout
+++ b/testsuite/tests/parser/should_run/CountAstDeps.stdout
@@ -242,6 +242,7 @@ GHC.Utils.Lexeme
GHC.Utils.Logger
GHC.Utils.Misc
GHC.Utils.Monad
+GHC.Utils.Monad.State.Strict
GHC.Utils.Outputable
GHC.Utils.Panic
GHC.Utils.Panic.Plain
diff --git a/testsuite/tests/parser/should_run/CountParserDeps.stdout b/testsuite/tests/parser/should_run/CountParserDeps.stdout
index 4ff132de2d..c9080fbce3 100644
--- a/testsuite/tests/parser/should_run/CountParserDeps.stdout
+++ b/testsuite/tests/parser/should_run/CountParserDeps.stdout
@@ -248,6 +248,7 @@ GHC.Utils.Lexeme
GHC.Utils.Logger
GHC.Utils.Misc
GHC.Utils.Monad
+GHC.Utils.Monad.State.Strict
GHC.Utils.Outputable
GHC.Utils.Panic
GHC.Utils.Panic.Plain