From: Duncan C. <dun...@wo...> - 2004-12-07 19:31:01
|
On Sun, 2004-12-05 at 11:04 +0000, Axel Simon wrote: > On Sat, 2004-12-04 at 13:28, Duncan Coutts wrote: > > I made some changes to the Makefile.am for the other packages (glade, > > mogul, etc). That was about a week ago, so I'll need to resync it first > > (unless you've already got the other packages working and I didn't > > notice the cvs commit). > Your additions probably are out-of-sync. But if you have the lists of > files, I could do it (next weekend). The next problem... :-) ghc has two modes of looking for .hi files, hierarchical and non-hierarchical. In hierarchical mode when importing System.Gnome.GConf.GConfClient it will look for ./System/Gnome/GConf/GConfValue.hi However if one specifies -igconf then it goes into non-hierarchical mode and will only look for gconf/GConfType.hi, and not gconf/System/Gnome/GConf/GConfType.hi Actually I don't quite understand when it uses one mode or the other. If you specify -igconf/System (but not -igconf) then it looks for: gconf/System/System/Gnome/GConf/GConfType.hi ie it is in hierarchical mode, but go back to -igconf (which if it were in hierarchical mode would be right) and it switches back to non-hierarchical mode! Grrr. So one workaround is to cd to the source base directory before invoking ghc and the other is to specify every subdirectory in SOURCES. Neither is particularly nice. Duncan |