Provide default MonadIO instance for IO.
authorThomas Schilling <nominolo@googlemail.com>
Sun, 14 Sep 2008 16:42:45 +0000 (16:42 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Sun, 14 Sep 2008 16:42:45 +0000 (16:42 +0000)
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
 
 ----------------------------------------------------------------------------------------