[Note to OGI folk: It'd be good to duplicate the information on this page
http://www.cse.ogi.edu/PacSoft/projects/Hugs/hugsman/diffs.html
on the known bugs page or put a pointer to it. I only found it because
I knew it existed.
]
Hi Satnam,
My information is increasingly out of date and misremembered (and I
haven't done anything radical like unpack your code and lokk at it)
but here goes...
Hugs' implementation of modules differs from the standard in a few
obscure cases - so the problem probably lies in Hugs not GHC. Some of
the known problems are listed in section 9 of the Hugs manual.
(http://www.cse.ogi.edu/PacSoft/projects/Hugs/hugsman/diffs.html)
The obvious things to consider (from that page) are:
Omissions
We ignore entity lists in qualified imports (but unqualified
imports are treated correctly). For example, you can write:
import qualified Prelude ( foo )
even though foo is not exported from the Prelude and you can write:
module M() where
import qualified Prelude () -- import nothing
x = Prelude.length "abcd"
Extensions
The T(..) syntax is allowed for type synonyms in import and export lists.
In my experience, the problems this causes can always be fixed by just
writing a little more in the import or export lists.
Alastair