
5 May
2005
5 May
'05
5:47 a.m.
On 05 May 2005 06:34, Sean Seefried wrote:
When I look in the Haddock generated code at: http://www.haskell.org/ghc/docs/latest/html/libraries/base/ Control.Monad.html#t%3AMonadPlus, I don't seem to find any reference to the IO monad being an instance of the MonadPlus class.
But when I look at the source code in libraries/mtl/Control/Monad/Error.hs it clearly is. Why is this happening?
The instance is defined in Control.Monad.Error, that's all. (Haddock doesn't currently tell you which instances are exported via which modules, and I consider this to be a bug - though I'm not exactly sure of the best way to fix it). Cheers, Simon