RE: [Haskell-cafe] MonadPlus instance for IO

that instance seems to be only in Control.Monad.Error in the 'mtl' package. It's not in the standard base package. You may need to import an mtl module to tell GHC to look there. Simon | -----Original Message----- | From: haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of | David Roundy | Sent: 02 February 2005 13:18 | To: haskell-cafe@haskell.org | Subject: [Haskell-cafe] MonadPlus instance for IO | | I'm sure I'm doing something stupid, but somehow ghc isn't recognizing the | existance of a MonadPlus instance for IO: | | DarcsIO.lhs:48: | No instance for (MonadPlus IO) | arising from use of `mplus' at DarcsIO.lhs:48 | In the definition of `foo': | foo = (fail "aaack") `mplus` (fail "foobar") | | Any idea what I'm doing wrong? I'm using | | $ ghc --version | The Glorious Glasgow Haskell Compilation System, version 6.2.2 | | packaged for debian. | -- | David Roundy | http://www.darcs.net | _______________________________________________ | Haskell-Cafe mailing list | Haskell-Cafe@haskell.org | http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
Simon Peyton-Jones