ghc and -fno-implicit-prelude

9 Jul
2002
9 Jul
'02
10:03 a.m.
Can I get ghc to use a local definition of `>>=` and return... currently I have: {-# OPTIONS -fglasgow-exts -fno-implicit-prelude #-} module Main(main) where import qualified Prelude (Monad(..)) import Prelude hiding (Monad(..)) ... Then a definition of Monad using a Premonad for return, however when compiling do notation it produces an error saying it cannot deduce (PrelBase.Monad p) Can I force ghc to use the definition of the Monad class I have provided for do notation (IE Monad derived from Premonad derived from Prelude.Functor) Regards, Keean.
8354
Age (days ago)
8354
Last active (days ago)
0 comments
1 participants
participants (1)
-
MR K P SCHUPKE