Hugs accepts the following modules: module A(Stuff(Foo, Bar)) where data Stuff = Foo | Bar module B(Stuff) where import A hiding(Stuff(..)) but Stuff should also be hidden.
Thanks, now fixed.
--sigbjorn
----- Original Message -----
From: "Ross Paterson"
Hugs accepts the following modules:
module A(Stuff(Foo, Bar)) where data Stuff = Foo | Bar
module B(Stuff) where import A hiding(Stuff(..))
but Stuff should also be hidden.
Thanks, now fixed. Applies to other 'orphans' in
export lists also (i.e., field names and data constructors.)
--sigbjorn
----- Original Message -----
From: "Ross Paterson"
On Tue, Sep 10, 2002 at 08:21:28AM -0700, Sigbjorn Finne wrote:
Thanks, now fixed.
Here's a trickier one:
module A(Class(foo), bar) where class Class a where foo :: a bar :: a
module B(Class(..)) where import A
module C where import B f = foo g = bar
says it can't find bar.
participants (2)
-
Ross Paterson -
Sigbjorn Finne