Changeset 12905

Show
Ignore:
Timestamp:
08/31/06 14:47:04 (2 years ago)
Author:
audreyt
Message:

* Unbreak GHC 6.5-trunk build by preferring our forM_ and forM

over the now-builtin ones (for now)

Location:
src/Pugs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Internals.hs

    r12800 r12905  
    115115import System.Directory (Permissions(..), getPermissions, getTemporaryDirectory, createDirectory, removeDirectory, removeFile, getDirectoryContents) 
    116116import Control.Exception (catchJust, errorCalls) 
    117 import Control.Monad.RWS 
     117import Control.Monad.RWS (MonadIO(..), MonadReader(..), MonadState(..), MonadWriter(..), MonadTrans(..), asks, ReaderT(..), WriterT(..), when, join, liftM, filterM, modify, unless, gets, foldM, guard, liftM2, liftM3, fix, mplus, mappend, mzero, mconcat, msum, censor) 
    118118import Control.Monad.Identity (Identity(..)) 
    119119import Control.Monad.Error (MonadError(..)) 
     
    344344          ) 
    345345 
     346-- On GHC 6.6 we actually want to use the builtin forM and forM_ in Control.Monad 
    346347 
    347348{-| 
     
    352353(This is just @mapM@ with the arguments reversed.) 
    353354-} 
     355{-# INLINE forM #-} 
    354356forM :: (Monad m)  
    355357     => [a]        -- ^ List of values to loop over 
     
    365367(This is just @mapM_@ with the arguments reversed.) 
    366368-} 
     369{-# INLINE forM_ #-} 
    367370forM_ :: (Monad m)  
    368371      => [a]        -- ^ List of values to loop over 
  • src/Pugs/Monads.hs

    r12324 r12905  
    2121     
    2222    MaybeT, runMaybeT, 
    23  
    24     module Control.Monad.RWS 
    2523) where 
    2624import Pugs.Internals