On Fri, 2005-01-07 at 19:52 +0000, Duncan Coutts wrote: > However when building some files, eg > gtk/Graphics/UI/Gtk/Abstract/Object.hs > ghc does not look in the right places for .hi files.
I think I figured out what was happening, so let me retract my bug report and instead ask for some friendly error message to help me from shooting myself in the foot! My example was that gtk/Graphics/UI/Gtk/Abstract/Object.hs imported gtk/Graphics/UI/Gtk/General/Signals.hs However gtk/Graphics/UI/Gtk/General/Signals.hs actually said: module Signal where rather than module Graphics.UI.Gtk.General.Signals where Now presumably the gtk/Graphics/UI/Gtk/General/Signals.hi file remembers the module name. So ghc reads the module name from gtk/Graphics/UI/Gtk/General/Signals.hi and then for some reason looks for Signal.hi which of course it cannot find. So if this is indeed the behaviour, I wonder why. After finding the .hi file there is no need to use it to look for itself. If there is a difference between the module name and the .hi file name it should be reported as an error at the point at which the .hi file is imported. It should probably be a warning to compile the a with the wrong module name in the first place (except for implicitly named "Main" modules). Duncan _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs