Haskell 98 non-conformance in qualifiers
Sigbjorn Finne
sigbjorn_finne@hotmail.com
Sun, 22 Apr 2001 22:34:30 +0200
Alastair Reid reid@cs.utah.edu writes:
>
> The following program (from the testsuite) is not legal Haskell'98 but
> is accepted by Hugs. The error is that you can't use the qualifier M
> inside M (at least, not without first explicitly importing M).
>
> tests/static/mod75.hs:
> --!!! Qualifying with local module name
> module M where
> f x = M.f x
That's legal Haskell 98 and should be accepted; see Section 5.5.1 of
the Report; bullet 1.
--sigbjorn