diff options
Diffstat (limited to 'Utility/Monad.hs')
-rw-r--r-- | Utility/Monad.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Monad.hs b/Utility/Monad.hs index 9c85d31ca..2c9b9e9e0 100644 --- a/Utility/Monad.hs +++ b/Utility/Monad.hs @@ -49,3 +49,7 @@ observe observer a = do {- b `after` a runs first a, then b, and returns the value of a -} after :: Monad m => m b -> m a -> m a after = observe . const + +{- do nothing -} +noop :: Monad m => m () +noop = return () |