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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to