logo       

RE: strange difference between old and hierachical module names: msg#00002

lang.haskell.glasgow.bugs

Subject: RE: strange difference between old and hierachical module names

Good bug report. Now fixed in the HEAD>

Simon


| -----Original Message-----
| From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx
[mailto:glasgow-haskell-bugs-
| bounces@xxxxxxxxxxx] On Behalf Of Ralf Laemmel
| Sent: 03 November 2003 11:10
| To: glasgow-haskell-bugs@xxxxxxxxxxx
| Subject: strange difference between old and hierachical module names
|
| Hi,
|
| I am trying to compile some modules with old imports
| such "import MonadFix". These modules compile fine
| with GHC 6.0 latest RPM, and also on CVS source tree
| 6.1 somewhere from july.
|
| However, the file below does NOT get through with GHC HEAD.
| I get ...
|
| > Compiling Foo ( Foo.hs, interpreted )
| >
| > Foo.hs:13: `mfix' is not a (visible) method of class `MonadFix'
| > Failed, modules loaded: none.
|
| If I use the new "import Control.Monad.Fix" instead of MonadFix,
| everything works fine. This is a bit strange because
| for most old imports there is no such problem.
| Seems to be something special going on with MonadFix.
|
| Thanks,
| Ralf
|
|
|
| ----------------------------------------------------------------
|
| module Foo where
|
| -- Does not work 6.3 as 2 Nov 2003
| import MonadFix
| -- Works with 6.3
| -- import Control.Monad.Fix
|
| data Foo a = Foo a
|
| instance Monad Foo
|
| instance MonadFix Foo where
| mfix = undefined
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise