<div dir="ltr">Hi!<br><br>In &quot;shipped with GHC&quot;, did you mean Haskell Platform? If so, cabal-dev is one way to solve your problem here. You can do #1 too, but that would probably break some packages.<br><div class="gmail_extra">
<br><br><div class="gmail_quote">On 28 June 2013 10:06, Rouan van Dalen <span dir="ltr">&lt;<a href="mailto:rvdalen@yahoo.co.uk" target="_blank">rvdalen@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:Courier New,courier,monaco,monospace,sans-serif"><div style="font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif;font-size:10pt">Hi,</div><div style="font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif;font-size:10pt">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">I am trying to install the latest version of some hackage packages I use often in GHC 7.6.3.</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
However, I am having some problems with packages like [containers] and [time], which</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
are shipped with GHC as global packages.</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
Now when I try to install the latest version of the [time] package, I have 2</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
time packages, 1 in the global package db (the
 older version), and 1 in the user package db</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">(the newer version).</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
Now I would like subsequent installed packages to always use the latest version of the [time]</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
package.  But if i try to install the [plugins] package, cabal says:</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><br>
</div><div style="background-color:transparent"><font face="Courier New, courier, monaco, monospace, sans-serif">#In order, the following would be installed:</font></div><div style="background-color:transparent"><font face="Courier New, courier, monaco, monospace, sans-serif">#ghc-paths-0.1.0.9 (new package)</font></div>
<div style="background-color:transparent"><font face="Courier New, courier, monaco, monospace, sans-serif">#random-1.0.1.1 (reinstall) changes: time-1.4.1 -&gt; 1.4.0.1</font></div><div style="background-color:transparent">
<font face="Courier New, courier, monaco, monospace, sans-serif">#plugins-1.5.3.0 (new package)</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
<font face="Courier New, courier, monaco, monospace, sans-serif"><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
<font face="Courier New, courier, monaco, monospace, sans-serif">So I guess I have 2 options here:</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
<font face="Courier New, courier, monaco, monospace, sans-serif"><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif">
<font face="Courier New, courier, monaco, monospace, sans-serif">1.
 unregister all the global packages so that I can</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">install the latest versions of all the global packages.</font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif"><br></font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">2. force cabal to only look at latest packages in user package db (not
 sure</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">if this is possible).</font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif"><br></font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">Can anyone please point me in the right direction here.  I have read about</font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">[cabal-dev], but I am not sure if it can be used to solve my problem.</font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif"><br></font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier New, courier, monaco, monospace, sans-serif">Regards</font></div>
<span class="HOEnZb"><font color="#888888"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:&#39;Courier New&#39;,courier,monaco,monospace,sans-serif"><font face="Courier
 New, courier, monaco, monospace, sans-serif">--Rouan</font></div></font></span></div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div></div>