
On Wed, Nov 08, 2006 at 02:48:33PM +0000, Neil Mitchell wrote:
Hi
The main thing is to decide where data files associated with a package should be stored. As I understand it, for Hugs on Windows the Haskell modules will be installed to
$prefix\Haskell\hugs\programs\<progname> $prefix\Haskell\hugs\packages\$pkg
for executables and libraries respectively. Should the data files also go in these directories, or somewhere else?
Where do they go in GHC? Is that based on the location of the .exe or not? I think I remember Simon changing it recently so the answer is that its not. In which case, Hugs and GHC can have similar file locations.
Ah, the answers (except for where Hugs puts program modules) are all in the table in section 3.1.2.1 of the Cabal User's Guide. We just need to adapt prefixFromBinDir for Hugs. (For Hugs, we might as well have prefix-independence under Unix too.) I might have a go at that some time, but someone else will need to test it under Windows.