Re: module system problem

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
On Mon, Oct 06, 2003 at 09:38:13AM -0700, Iavor Diatchki wrote:
> there seems to be a bug in the module system implementation:
> 
> > module Test where
> > import Prelude hiding (negate)
> > negate  = not
> > test    = negate
> 
> ERROR "Test.lhs":7 - Ambiguous variable occurrence "negate"
> *** Could refer to: Test.negate Hugs.Prelude.negate

Lucky hit -- it seems this only affects Prelude method names grabbed
by Hugs for desugaring: negate, enumFrom, enumFromThen, enumFromTo,
enumFromThenTo and rangeSize.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.