diff options
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv020.hs')
-rw-r--r-- | testsuite/tests/deriving/should_compile/drv020.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv020.hs b/testsuite/tests/deriving/should_compile/drv020.hs index bd5c8f4235..fc1f953715 100644 --- a/testsuite/tests/deriving/should_compile/drv020.hs +++ b/testsuite/tests/deriving/should_compile/drv020.hs @@ -22,11 +22,10 @@ instance Functor (State s) where fmap = liftM instance Applicative (State s) where - pure = return + pure a = State $ \s -> (a, s) (<*>) = ap instance Monad (State s) where - return a = State $ \s -> (a, s) m >>= k = State $ \s -> let (a, s') = runState m s in runState (k a) s' |