summaryrefslogtreecommitdiff
path: root/testsuite/tests/cpranal/should_compile/Cpr001_imp.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cpranal/should_compile/Cpr001_imp.hs')
-rw-r--r--testsuite/tests/cpranal/should_compile/Cpr001_imp.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/tests/cpranal/should_compile/Cpr001_imp.hs b/testsuite/tests/cpranal/should_compile/Cpr001_imp.hs
index e5175b658d..a151a2a909 100644
--- a/testsuite/tests/cpranal/should_compile/Cpr001_imp.hs
+++ b/testsuite/tests/cpranal/should_compile/Cpr001_imp.hs
@@ -25,7 +25,7 @@ instance Functor (StateTrans s) where
fmap = liftM
instance Applicative (StateTrans s) where
- pure = return
+ pure v= ST (\s -> (s, Just v))
(<*>) = ap
instance Monad (StateTrans s) where
@@ -40,8 +40,6 @@ instance Monad (StateTrans s) where
q s1
Nothing -> (s1, Nothing)
)
- return v
- = ST (\s -> (s, Just v))
-- machine state transitions