[Hugs-bugs] module system/libraries bug
Sigbjorn Finne
sof at galois.com
Wed Feb 4 11:07:57 EST 2004
For some reason the class method 'bounds' isn't getting dropped
from the effective import list of ST. Until that's been fixed, give
Hugs a hand and state the method's class, i.e.:
import ST hiding (HasBounds(bounds))
--sigbjorn
Iavor S. Diatchki wrote:
> hello,
> i am having the following problem (just tried it with the current cvs
> version, on linux)
>
> > import Array
> > import ST hiding (bounds)
> >
> > test x = bounds x
>
> ERROR "test.hs":4 - Ambiguous variable occurrence "bounds"
> *** Could refer to: Data.Array.Base.bounds Hugs.Array.bounds
>
> I am not sure why ST is exporting "bounds" at all, but in any case
> the "hiding" clause of the import should prevent the conflict.
> a similar thing occurs with "indices", but then adding the "hiding"
> clause solves the problem.
>
> -iavor
More information about the Hugs-Bugs
mailing list