diff options
Diffstat (limited to 'compiler/codeGen')
-rw-r--r-- | compiler/codeGen/StgCmmExtCode.hs | 4 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmMonad.hs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/codeGen/StgCmmExtCode.hs b/compiler/codeGen/StgCmmExtCode.hs index 2091d9b358..50015989e0 100644 --- a/compiler/codeGen/StgCmmExtCode.hs +++ b/compiler/codeGen/StgCmmExtCode.hs @@ -89,12 +89,12 @@ instance Functor CmmParse where fmap = liftM instance Applicative CmmParse where - pure = return + pure = returnExtFC (<*>) = ap instance Monad CmmParse where (>>=) = thenExtFC - return = returnExtFC + return = pure instance HasDynFlags CmmParse where getDynFlags = EC (\_ _ d -> do dflags <- getDynFlags diff --git a/compiler/codeGen/StgCmmMonad.hs b/compiler/codeGen/StgCmmMonad.hs index 3d055e75bb..3083bfffc4 100644 --- a/compiler/codeGen/StgCmmMonad.hs +++ b/compiler/codeGen/StgCmmMonad.hs @@ -118,12 +118,12 @@ instance Functor FCode where fmap f (FCode g) = FCode $ \i s -> case g i s of (# a, s' #) -> (# f a, s' #) instance A.Applicative FCode where - pure = return + pure = returnFC (<*>) = ap instance Monad FCode where (>>=) = thenFC - return = returnFC + return = A.pure {-# INLINE thenC #-} {-# INLINE thenFC #-} |