ghc and -fno-implicit-prelude

Simon Peyton-Jones simonpj@microsoft.com
Tue, 9 Jul 2002 15:25:09 +0100


In the upcoming 5.04 release you'll be able to do exactly
that.  GHC will use whatever >>=3D is in scope if you say
-fno-implicit-prelude.

Simon

| -----Original Message-----
| From: MR K P SCHUPKE [mailto:k.schupke@ic.ac.uk]=20
| Sent: 09 July 2002 15:03
| To: glasgow-haskell-users@haskell.org
| Subject: ghc and -fno-implicit-prelude=20
|=20
|=20
| Can I get ghc to use a local definition of `>>=3D` and=20
| return... currently=20
| I have:
|=20
| {-# OPTIONS -fglasgow-exts -fno-implicit-prelude #-}
| module Main(main) where
| import qualified Prelude (Monad(..))
| import Prelude hiding (Monad(..))
|=20
| ... Then a definition of Monad using a Premonad for return,=20
| however when=20
| compiling
| do notation it produces an error saying it cannot deduce=20
| (PrelBase.Monad p)
|=20
| Can I force ghc to use the definition of the Monad class I=20
| have provided=20
| for do notation
| (IE Monad derived from Premonad derived from Prelude.Functor)
|=20
|     Regards,
|     Keean.
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users
|=20