logo       

RE: search path wierdness: msg#00023

lang.haskell.glasgow.bugs

Subject: RE: search path wierdness

On 08 January 2005 04:34, Duncan Coutts wrote:

> 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.

I don't quite follow. When compiling
gtk/Graphics/UI/Gtk/General/Signals.hs did you specify -ohi
gtk/Graphics/UI/Gtk/General/Signals.hi?

I agree it looks like a warning should have gone off earlier, but I
can't tell exactly where yet.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise