<div>Hi.</div><div><br></div><div>I&#39;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&#39;ve setup two directories, one for each platform (related to the GHC):</div>

<div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"># ls -d -1 $PWD/*.*</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">/usr/haskell/2010.2.0.0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">/usr/haskell/2011.2.0.0</font></div><div><br></div><div>I&#39;ve installed GHC-6.12.3 in &quot;2010.2.0.0&quot; and will install GHC-7.0.2 in &quot;2011.2.0.0&quot;.</div>

<div><br></div><div>My question is more related to where I should install the packages. When I install a package using &quot;runhaskell Setup ...&quot; I assumed this to ONLY be installed for the version of GHC I&#39;m using when installing it. Am I right about this?</div>

<div><br></div><div>Having $PATH pointing to GHC-6.12.3 I&#39;ve done this when installing packages, to add them to &quot;2010.2.0.0&quot;:</div><div>- - - - - - -</div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">cd /usr/src</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, 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="&#39;courier new&#39;, monospace">tar xzf transformers-0.2.2.0.tar.gz</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">cd transformers-0.2.2.0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">runhaskell Setup configure --prefix=/usr/haskell/2010.2.0.0/</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">runhaskell Setup build</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, 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 &quot;2011.2.0.0&quot; 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 &quot;best practice&quot; 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>