diff options
Diffstat (limited to 'testsuite/tests/ghci.debugger/HappyTest.hs')
-rw-r--r-- | testsuite/tests/ghci.debugger/HappyTest.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/ghci.debugger/HappyTest.hs b/testsuite/tests/ghci.debugger/HappyTest.hs index 8eac4e714f..ec00fb4c52 100644 --- a/testsuite/tests/ghci.debugger/HappyTest.hs +++ b/testsuite/tests/ghci.debugger/HappyTest.hs @@ -173,13 +173,13 @@ instance Functor HappyIdentity where fmap = liftM instance Applicative HappyIdentity where - pure = return + pure = HappyIdentity (<*>) = ap instance Monad HappyIdentity where - return = HappyIdentity (HappyIdentity p) >>= q = q p + happyThen :: () => HappyIdentity a -> (a -> HappyIdentity b) -> HappyIdentity b happyThen = (>>=) happyReturn :: () => a -> HappyIdentity a |