logo       

Re: spurious export conflict: msg#00005

lang.haskell.glasgow.bugs

Subject: Re: spurious export conflict

On Mon, Jan 06, 2003 at 05:36:47PM -0000, Simon Peyton-Jones wrote:
> | GHC reports an export conflict on the following:
> |
> | module M where
> | import List as M
> | sort = "foo"
>
> It's not spurious. Both
>
> M.sort
> and
> Data.List.sort
>
> are in scope under both names:
>
> sort and M.sort
>
> And that makes it ambiguous according to the spec.

That would be the analysis if the export list were (module M), but
"If the export list is omitted, all values, types and classes defined
in the module are exported, _but not those that are imported_."
There should never be ambiguity or conflicts if the export list is
omitted.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise