The import decl

        import Ick as Uck

is treated silently as if the `as Uck' hadn't been typed.  GHC gives an
ingracious syntax error at least.  Mind you, according to the report
this seems to be valid syntax, and the case where your omit `qualified'
doesn't seem to be ruled out by the report, even tho if you look at the
GHC syntax, it requires `qualified' before `as'.  But I have no opinion
on that, I just like good error messages!

I discovered this in a quick experiment trying to recall how to import a
file name in hugs.  I thought it was
        import Ick as "Ick.hs"
which seems more intuitive, because then you make it clear what the
module identifier is.

--Jeff

Reply via email to