<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Jul 31, 2015 at 10:31 PM Erik de Castro Lopo <<a href="mailto:mle%2Bhs@mega-nerd.com">mle+hs@mega-nerd.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I maintaing multiple versions of GHC on all the machines I use regularly<br>
for Haskell development. I have:<br>
<br>
* ghc-7.6.3 installed under /usr/lib/ghc-7.6/<br>
* ghc-7.8.4 installed under /usr/lib/ghc-7.8/<br>
* ghc-7.10.2 installed under /usr/lib/ghc-7.10/<br>
<br>
To switch between versions all I need to do is modify $PATH<br>
to remove say /usr/lib/ghc-7.6/bin and add /usr/lib/ghc-7.10/bin.<br>
This lets me have two terminal window side by side with different<br>
versions of GHC.<br>
<br>
I actually have a shell function to to do this PATH mangling. I can<br>
document this more fully if anyone is interested.<br><br></blockquote><div><br></div><div>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.</div><div><br></div><div>[1] <a href="https://www.gnu.org/software/stow/">https://www.gnu.org/software/stow/</a></div><div><br></div><div>Josef</div></div></div>