GHC.Paths
Ian Lynagh
igloo at earth.li
Tue Jun 24 08:19:01 EDT 2008
On Mon, Jun 23, 2008 at 12:24:17PM +0100, Simon Marlow wrote:
>
> This is what you were asking for, I think:
>
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-paths-0.1.0.1
We discussed this on IRC recently, and the options we came up with were:
* Simon's ghc-paths package
Pro: With dynamic libraries, you can move a binary to a different
machine (with GHC in a different place) and it will work
Con: Needing to compile it on installation
* Using a Windows registry entry, or /etc/ghc.conf (along with
~/.ghc.conf, somewhere in /usr/local and /opt or whatever is
standard) to get a mapping from GHC version to install location
Pro: You can move a binary to a different machine (with GHC in a
different place) and it will work
Con: Won't work if you have multiple copies of the same version
installed for some reason. You need to be able to write to a
suitable ghc.conf.
* Making a magic GHC.Prim.packageConf :: FilePath, that gets baked into
the executable at compile-time.
Pro: Simple (from the user's point of view, at least).
Handles the in-ghci case admirably.
Con: Can't move binaries to other machines.
Thanks
Ian
More information about the Cvs-libraries
mailing list