Re: qualified import of prelude

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
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(..))
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.