import with hiding

Simon Marlow simonmar at microsoft.com
Mon Aug 13 09:43:47 EDT 2001


> Simon Marlow wrote:
> > 
> > I can't repeat this with a small example, and I can't 
> repeat it with the
> > example you attached because it requires several other modules.
> I'm sorry, I attached the wrong file.  The correct 
> DaVinciBasicTest.hs is
> attached.  I've also attached the original of the imported 
> file (rather than
> the imported one).
> 
> Also I've shortened the command line.  The following provokes the bug.
> 
> /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -c DaVinciTypes.hs
> /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -c DaVinciBasicTest.hs
> 
> DaVinciBasicTest.hs:7:
>     Type constructor or class not in scope: `DaVinciAnswer'
> 
> I think the problem is that in the "hiding" list, the 
> constructor "Context" 
> is incorrectly specified; it should have been specified as a type.

This example works with the current compiler, so the bug appears to have
been fixed since 5.00.2.

Cheers,	
	Simon




More information about the Glasgow-haskell-bugs mailing list