Add voidM to Control.Monad

Simon Hengel sol at typeful.net
Mon Jan 16 15:12:25 CET 2012


> voidM :: Monad m => m a -> m ()
> voidM m = m >> return ()

Is voidM meant to be used with instance of Monad that are no monads, and
hence have no Functor instance (like HtmlM[1])?

Cheers,
Simon

[1] http://hackage.haskell.org/packages/archive/blaze-html/0.4.3.1/doc/html/Text-Blaze-Internal.html#t:HtmlM



More information about the Libraries mailing list