hello, 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 bye iavor -- ================================================== | Iavor S. Diatchki, Ph.D. student | | Department of Computer Science and Engineering | | School of OGI at OHSU | | http://www.cse.ogi.edu/~diatchki | ==================================================
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.
participants (2)
-
Iavor Diatchki -
Ross Paterson