module system problem
Ross Paterson
ross at soi.city.ac.uk
Thu Oct 9 15:42:08 EDT 2003
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.
More information about the Hugs-Bugs
mailing list