Given these modules: module A(Stuff(Foo, Bar)) where data Stuff = Foo | Bar module B(Stuff(..)) where import A module C where import B loading C gives "INTERNAL ERROR: importEntity" Changing the import in C gives different internal errors. The particular form of the exports in A and B and the import in B seems necessary to trigger the bug.
Hi, thanks for the report; now fixed. --sigbjorn ----- Original Message ----- From: "Ross Paterson" <ross@soi.city.ac.uk> To: <hugs-bugs@haskell.org> Sent: Monday, July 15, 2002 05:47 Subject: transitive imports
Given these modules:
module A(Stuff(Foo, Bar)) where data Stuff = Foo | Bar
module B(Stuff(..)) where import A
module C where import B
loading C gives "INTERNAL ERROR: importEntity"
Changing the import in C gives different internal errors. The particular form of the exports in A and B and the import in B seems necessary to trigger the bug.
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"
participants (2)
-
Ross Paterson -
Sigbjorn Finne