X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Frename%2FRnSource.lhs;h=8847f3bc5a0cb2aa5f1fcfc631b486692a0630c7;hp=1cb222336722df6f18ec79b4f8c99154041c7f35;hb=6c7b41cc2b24f533697a62bf1843507ae043fc97;hpb=80ef1f06253f1a20a63816c295e180e47cd9a347 diff --git a/compiler/rename/RnSource.lhs b/compiler/rename/RnSource.lhs index 1cb2223..8847f3b 100644 --- a/compiler/rename/RnSource.lhs +++ b/compiler/rename/RnSource.lhs @@ -59,6 +59,27 @@ import ListSetOps (findDupsEq, mkLookupFun) import Control.Monad \end{code} +\begin{code} +-- XXX +thenM :: Monad a => a b -> (b -> a c) -> a c +thenM = (>>=) + +thenM_ :: Monad a => a b -> a c -> a c +thenM_ = (>>) + +returnM :: Monad m => a -> m a +returnM = return + +mappM :: (Monad m) => (a -> m b) -> [a] -> m [b] +mappM = mapM + +mappM_ :: (Monad m) => (a -> m b) -> [a] -> m () +mappM_ = mapM_ + +checkM :: Monad m => Bool -> m () -> m () +checkM = unless +\end{code} + @rnSourceDecl@ `renames' declarations. It simultaneously performs dependency analysis and precedence parsing. It also does the following error checks: