Skip to content

Make switching GHC versions easier on Mac OS

The standard .pkg installer for GHC or the platform follow the Mac OS convention of keeping different versions in separate version folders in the framework, with a symlink from Current to the current version. However, the wrapper scripts (/usr/bin/ghc, runhaskell, ghci) all explicitly mention the full path to the GHC that was most recently installed, like

datadir="/Library/Frameworks/GHC.framework/Versions/7.3.20111017-x86_64/usr/share"

This prevents us from easily switching versions by just changing the symlink to an older version. Could the variables in the GHC script be changed to something like

datadir="/Library/Frameworks/GHC.framework/Versions/Current/usr/share"

so we can switch more easily?

Trac metadata
Trac field Value
Version 7.2.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information