Re: module system bug

"Sigbjorn Finne" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <0d8d01c2d3cd$6ff32f80$6601a8c0@snapdragon>
Thanks, now fixed.

--sigbjorn

----- Original Message ----- 
From: "Iavor S. Diatchki" <[email protected]>
To: "hugs-bugs" <[email protected]>
Sent: Thursday, February 13, 2003 10:15
Subject: module system bug


> hi,
> 
> i seem to have run into a module system bug, which is illustrated by the
> following example:
> module A where
>     data T = T
> 
> module B where
>     import A hiding (T())  -- note the parens after T
>     v = T
> 
> Hugs complains that "T" is an undefined constructor.
> This would be the correct behaviour if T didn't have the
> () after it, as both the type and the constructors by the name
> T should be hidden.  however, the parens indicate that
> the type/class T should be hidden, and also all the constructors listed
> in the parens.  since the constructor T is not listed, it should not be
> hidden.  basically, if a name has parens after it, it always refers to a
> type/class.
> 
> this is not a big thing, but is ocasionally useful, and more
> importantly, it is nice when one can load a program with both GHC and
> Hugs, which i am glad to say happens more and more often.
> 
> bye
> iavor
> 
>
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.