qualified import of prelude

Ross Paterson ross at soi.city.ac.uk
Mon Sep 22 11:08:40 EDT 2003


On Sun, Sep 21, 2003 at 09:16:19PM +0200, Andrew Frank wrote:
> i seem to have a problem with a qualified import of the prelude in hugs
> nov03, haskell extensions, under windows:
> 
> Reading file "C:\gisTheoryCodeSept03\lib\Language\Value240.hs":
> ERROR "C:\gisTheoryCodeSept03\lib\Language\Value240.hs":207 - Ambiguous
> variable occurrence "quotRem"
> *** Could refer to: Language.Value240.quotRem Hugs.Prelude.quotRem

There is a bug buried in all this: for

	import qualified Prelude hiding (Integral)

Hugs is erroneously importing the methods of Integral unqualified.
This is now fixed in CVS.  Possible workarounds are

	import qualified Prelude
or
	import qualified Prelude hiding (Integral(..))


More information about the Hugs-Bugs mailing list