Add voidM to Control.Monad

Simon Hengel sol at
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])?



More information about the Libraries mailing list