Using Hugs 1.4, I can't name methods by themselves in an import list.
Example Program:
module Test where
import Prelude hiding (map)
x = 1
Result:
ERROR "Test.hs": Unknown entity "map" imported from module "Prelude"
I get the same result even if I replace
import Prelude hiding (map)
with
import Prelude (map)
Section 5.1.1 of the 1.4 Report says
"Entities in an export list may be named as follows:
1.A value, field name, or class method, whether declared in the module
body or imported, may be named by giving the name of the value as
a qvarid."
and Section 5.1.2 says
"Items in the [import] list have the same form as those in export lists,
except qualifiers are not permitted and the `module modid' entity is
not permitted."
which implies that I should be able to import or hide methods in this fashion.
GHC does allow this kind of import.
Chris