<div>Hi.</div><div><br></div><div>I'm installing the Haskell Platform om my Linux box and need some tips on how to structure the files on the OS. I need to install and use both GHC 6.12.3 and GHC 7.0.2. Hence I want to separate these installations. I've setup two directories, one for each platform (related to the GHC):</div>
<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace"># ls -d -1 $PWD/*.*</font></div><div><font class="Apple-style-span" face="'courier new', monospace">/usr/haskell/2010.2.0.0</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">/usr/haskell/2011.2.0.0</font></div><div><br></div><div>I've installed GHC-6.12.3 in "2010.2.0.0" and will install GHC-7.0.2 in "2011.2.0.0".</div>
<div><br></div><div>My question is more related to where I should install the packages. When I install a package using "runhaskell Setup ..." I assumed this to ONLY be installed for the version of GHC I'm using when installing it. Am I right about this?</div>
<div><br></div><div>Having $PATH pointing to GHC-6.12.3 I've done this when installing packages, to add them to "2010.2.0.0":</div><div>- - - - - - -</div><div><font class="Apple-style-span" face="'courier new', monospace">cd /usr/src</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">wget <a href="http://hackage.haskell.org/packages/archive/transformers/0.2.2.0/transformers-0.2.2.0.tar.gz">http://hackage.haskell.org/packages/archive/transformers/0.2.2.0/transformers-0.2.2.0.tar.gz</a></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">tar xzf transformers-0.2.2.0.tar.gz</font></div><div><font class="Apple-style-span" face="'courier new', monospace">cd transformers-0.2.2.0</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">runhaskell Setup configure --prefix=/usr/haskell/2010.2.0.0/</font></div><div><font class="Apple-style-span" face="'courier new', monospace">runhaskell Setup build</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">runhaskell Setup install</font></div><div>- - - - - - -</div><div><br></div><div>Later when I switch to GHC-7.0.2 I plan to install the packages into the "2011.2.0.0" directory in stead.</div>
<div><br></div><div>Is this a good way to structure several Haskell installations on the same system? Is there a "best practice" on how to structure the files? I want to get this right from the start, to avoid having to go back and re-arrange everything.</div>
<div><br></div><div>Regards,</div><div>Frode K</div><div><br></div><div>[k]</div>