From 949d0d6c76ea76c18b8df17f1fc05efae17b25be Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 9 Sep 2012 11:59:24 +0200 Subject: [PATCH] codegen: make use of Functor instance --- Mate/X86CodeGen.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mate/X86CodeGen.hs b/Mate/X86CodeGen.hs index 8ac7e7d..af3e98d 100644 --- a/Mate/X86CodeGen.hs +++ b/Mate/X86CodeGen.hs @@ -99,8 +99,8 @@ emitFromBB cls method = do getCurrentOffset :: CodeGen e s Word32 getCurrentOffset = do - ep <- (fromIntegral . ptrToIntPtr) `liftM` getEntryPoint - offset <- fromIntegral `liftM` getCodeOffset + ep <- (fromIntegral . ptrToIntPtr) <$> getEntryPoint + offset <- fromIntegral <$> getCodeOffset return $ ep + offset emitInvoke :: Word16 -> Bool -> CodeGen e s (Maybe (Word32, TrapCause)) -- 2.25.1