From josef.svenningsson at gmail.com Sun Aug 2 15:03:27 2015 From: josef.svenningsson at gmail.com (Josef Svenningsson) Date: Sun, 02 Aug 2015 15:03:27 +0000 Subject: simultaneous ghc versions In-Reply-To: <20150801063138.246d3697079385296f431930@mega-nerd.com> References: <20150801063138.246d3697079385296f431930@mega-nerd.com> Message-ID: On Fri, Jul 31, 2015 at 10:31 PM Erik de Castro Lopo wrote: > I maintaing multiple versions of GHC on all the machines I use regularly > for Haskell development. I have: > > * ghc-7.6.3 installed under /usr/lib/ghc-7.6/ > * ghc-7.8.4 installed under /usr/lib/ghc-7.8/ > * ghc-7.10.2 installed under /usr/lib/ghc-7.10/ > > To switch between versions all I need to do is modify $PATH > to remove say /usr/lib/ghc-7.6/bin and add /usr/lib/ghc-7.10/bin. > This lets me have two terminal window side by side with different > versions of GHC. > > I actually have a shell function to to do this PATH mangling. I can > document this more fully if anyone is interested. > > I have a similar setup where I install different versions of GHC in different directories. But I use GNU stow[1] to create and remove symlinks in /usr/local/* so that I can use one version of GHC as the default. [1] https://www.gnu.org/software/stow/ Josef -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander at plaimi.net Mon Aug 3 14:04:58 2015 From: alexander at plaimi.net (Alexander Berntsen) Date: Mon, 03 Aug 2015 16:04:58 +0200 Subject: simultaneous ghc versions In-Reply-To: References: Message-ID: <55BF750A.7090801@plaimi.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 31/07/15 20:10, Evan Laforge wrote: > Come to think of it, shouldn't ghc include this, instead of > everyone creating their own shell scripts by hand? I don't think so. This is usually done in the userland -- at least in GNU+Linux distributions. And as mentioned, cabal handles it already. - -- Alexander alexander at plaimi.net https://secure.plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJVv3UIAAoJENQqWdRUGk8BNIwP/1Y2gqn61jgYbq9nRKLYPqTU fCWC4N1uFjUQWLEzVPX8DxQQiqRF2IBt9jUo/K6Z6k82cz91E9/r2Hfpeyp43Y+M j+WB38jJhr94dpWHJOGYXZNkSHfR6JUwFKwDM8PmOFvfphEJ79FG0EABFNwr6BPY XWAY5d5bPoDwiuXgtF50ioRnMAmktDNBQP7f1kV//S7rraNL+qcr7k0EobrK8myw lfclXg0U5rwre73Nrlm4avJI4Zdtgkw/TMSVkG+OPFRqQiUPnlzHveuzLPR2+J52 fl5WAWBSSWdS1mYCj0KXNGoS1oP8loq70hfb8HG+Gm9MQfq4UxI1YgM62jK66zNM q8xClsDlqkz4KqHLQkdL1dfFtLT3w5Sqp7P/4ok/8/dij8gvHCFuGn4OIo0rU39z HHmgbFppGZqpdoGBPfmJFextwvdvs0lcLgODKv1XpZid4k6p2TXhenfDTsiSqkdj zckFbawoEVs7vjjRW0SUDCgH6EMtQDJEQ0OjlHpYNy1xKwPjJpV2n1Ea8UmZcdmI g5w+O+0X62tyYJRPDMQVl3QlRMwcc/X2IV/OyU5L39CTcehqkmddiV/r2E7tXlfO gGr8659SyB4EgG6yfot77nBt8MO5QeKMBSdzYCbfObk6H1Zqe+Z6N7N6ebpVdNz3 NDhsqhx/gyjdNX2tYrMM =KlSw -----END PGP SIGNATURE----- From allbery.b at gmail.com Mon Aug 3 14:17:46 2015 From: allbery.b at gmail.com (Brandon Allbery) Date: Mon, 3 Aug 2015 10:17:46 -0400 Subject: simultaneous ghc versions In-Reply-To: <55BF750A.7090801@plaimi.net> References: <55BF750A.7090801@plaimi.net> Message-ID: On Mon, Aug 3, 2015 at 10:04 AM, Alexander Berntsen wrote: > On 31/07/15 20:10, Evan Laforge wrote: > > Come to think of it, shouldn't ghc include this, instead of > > everyone creating their own shell scripts by hand? > I don't think so. This is usually done in the userland -- at least in > GNU+Linux distributions. > More to the point, various distribution methods already include such things (e.g. NixOS, Debian's alternatives system, MacPorts' "port select") plus there are various mechanisms for implementing this on an ad-hoc basis (GNU stow, environment modules, etc.). Downstream packages implementing their own versions of this except speicifically on an opt-in basis (e.g. configure option) tend to interfere with these and complicate inclusion into existing package systems. -- brandon s allbery kf8nh sine nomine associates allbery.b at gmail.com ballbery at sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net -------------- next part -------------- An HTML attachment was scrubbed... URL: