projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2cd7b
)
Provide default MonadIO instance for IO.
author
Thomas Schilling
<nominolo@googlemail.com>
Sun, 14 Sep 2008 16:42:45 +0000
(16:42 +0000)
committer
Thomas Schilling
<nominolo@googlemail.com>
Sun, 14 Sep 2008 16:42:45 +0000
(16:42 +0000)
compiler/utils/MonadUtils.hs
patch
|
blob
|
history
diff --git
a/compiler/utils/MonadUtils.hs
b/compiler/utils/MonadUtils.hs
index
59bf509
..
85d8642
100644
(file)
--- a/
compiler/utils/MonadUtils.hs
+++ b/
compiler/utils/MonadUtils.hs
@@
-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
----------------------------------------------------------------------------------------