> If one follows the FHS, one
> should install the Haskell source file in /usr/share/blah and the
> shared object in /usr/lib/blah. However, if I have understood things
> right, Hugs looks for the shared object in the directory where the
> corresponding .hs file is. How to solve this? Invoke the Mad Symlinker?
Logically, they are a single file since you have to have a precisely
matched pair generated in the same run of GreenCard. (The view that
they are logically two parts of the same thing is what prompted the
rule that they had to come from exactly the same directory as each
other.) That "single file" is architecture dependent so "it" should go
in /usr/lib/blah.
Also (ie if you don't buy this interpretation), I think the FHS
requires that all files in /usr/share/blah to be architecture
independent but I don't think it requires all architecture independent
code to go in /usr/share/blah.
> So the current Hugs supports both version 1 and version 2 of the FFI?
I think it still does. I doubt that anyone still has GreenCard 1 code
lying around though.
A