State of the Mac Installer
Mark Lentczner
mark.lentczner at gmail.com
Wed Mar 2 20:10:54 GMT 2011
Editing ~/.bash_profile feels "out of scope" to me. Installing Haskell
shouldn't, I think, edit your shell settings, should it? For example,
I can't imagine any Linux distro of Haskell deciding to do such a
thing.
If it *were* in scope, then I'd keep all the built bins tidy and out
of /usr/bin even for ghc and the like, and put all of these on the
user's PATH:
~/Library/Haskell/bin/
/Library/Haskell/bin/
/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/
But that would lead to another problem: When to modify
~/.bash_profile? At install time, the installer is running as
administrator. It could enumerate all accounts and try to figure out
which are real users vs. utility accounts. It could enumerate /Users,
ignoring Shared. And none of these would handle the issue of
non-logged in users with FireVault home dirs, home dirs mounted via
NFS or the like, or (gasp) users who don't use bash!
Still searching...
- Mark
More information about the Haskell-platform
mailing list