Provide default MonadIO instance for IO.
[ghc-hetmet.git] / compiler / utils / MonadUtils.hs
index 59bf509..85d8642 100644 (file)
@@ -73,6 +73,7 @@ instance Applicative IO where
 class Monad m => MonadIO m where
     liftIO :: IO a -> m a
 
+instance MonadIO IO where liftIO = id
 #endif
 
 ----------------------------------------------------------------------------------------