transitive imports

Ross Paterson ross@soi.city.ac.uk
Wed, 24 Jul 2002 12:43:39 +0100


A variation on the previous bug.  Given these modules:

module A(Stuff(Foo, Bar)) where
data Stuff = Foo | Bar

module B(Stuff(..)) where
import A

module C where
import B
f = Foo

loading C gives

Dependency analysis
ERROR "C.hs":4 - Undefined constructor function "Foo"