Policy question re: Haskell Platform installer on OSX
greg at gregorycollins.net
Mon Jan 12 16:47:59 EST 2009
Don Stewart <dons at galois.com> writes:
>> Hi all,
>> I'm currently writing a program to take Cabal libraries and turn them
>> into OSX .pkg files, for the Haskell platform's Mac installer.
>> Where should the libraries be installed? The current GHC installer plops
>> them down into /Library/Frameworks/GHC.framework/Versions/xxx/usr, and
>> my thinking is that I'll keep it that way so that we can piggyback on
>> GHC's uninstall script. Otherwise the platform project will need an
>> uninstaller of its own.
> Yeah, I'd make sure you can use ghc-pkg with the libs. That's what all
> the other unix distros do.
Yep - the generated installers will run "ghc-pkg update" as a
post-installation step, no matter where the files end up going on disk.
The main issue on OSX is that the system installer doesn't do
UNinstallation, otherwise I'd just add an uninstall hook that ran
As it stands my options are "stick the Haskell platform libraries
somewhere in /Library/Frameworks/GHC.framework and make use of the
existing uninstaller" and "ship the Haskell platform with its own custom
Gregory Collins <greg at gregorycollins.net>
More information about the Libraries