[nhc-bugs] export and import list (,) not allowed

Ian Lynagh igloo@earth.li
Sun, 9 Dec 2001 18:34:19 +0000


With the module

    module Foo (,) where

    foo = 0

I get

    2:14 Found Prelude.2 but expected one of _where_ () (

but the report (and GHC) allows this.

Similarly with import lists I get either

    4:15 Found Prelude.2 but expected a {-end-of-definition-or-EOF-}

or

    4:15 Found _hiding_ but expected a {-end-of-definition-or-EOF-}

depending on whether I use hiding.


Thanks
Ian