The following change in .cabal file may solve the problems:<div>---</div><div><div>flag base4</div><div>&nbsp;&nbsp;description: Choose base-4 if possible</div><div>&nbsp;&nbsp;default: True</div><div><br></div><div>library</div><div>&nbsp;&nbsp;if flag(splitBase)</div>
<div>&nbsp;&nbsp; &nbsp;if flag(base4)</div><div>&nbsp;&nbsp; &nbsp; &nbsp;Build-Depends: base&gt;=4, old-time, time, bytestring, containers, old-locale</div><div>&nbsp;&nbsp; &nbsp;else</div><div>&nbsp;&nbsp; &nbsp; &nbsp;Build-Depends: base&gt;=3, old-time, time, bytestring, containers, old-locale</div>
<div>&nbsp;&nbsp;else</div><div>&nbsp;&nbsp; &nbsp;Build-Depends: base&lt;3</div><div>&nbsp;&nbsp;Build-Depends: mtl, convertible &gt;= 1.0.1, utf8-string</div><div>---</div><div><br></div><div>It works for me and I *think* will also work for other setups, most notably GHC 6.8.*.</div>
<div><br></div><div>All best</div><div><br></div><div>Christopher SkrzÄ™tnicki</div><br><div class="gmail_quote">On Sat, Jan 31, 2009 at 01:31, John Goerzen <span dir="ltr">&lt;<a href="mailto:jgoerzen@complete.org">jgoerzen@complete.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">On Sat, Jan 31, 2009 at 12:52:02AM +0100, Krzysztof Skrz??tnicki wrote:<br>
&gt; &gt; I got the same error: Windows XP, GHC 6.10.1.<br>
&gt; &gt; For some reason imported Control.Exception module appears to be 6.8.*<br>
&gt; &gt; version.<br>
&gt; &gt;<br>
&gt;<br>
&gt; I found a (temporary) fix: change dependancy in .cabal file to state &quot;base<br>
&gt; &gt;= 4&quot;. Otherwise cabal-install selects base-3 which is the cause of the<br>
&gt; problems.<br>
<br>
</div>Thanks for the hint for folks.<br>
<br>
Why would cabal-install select a different base than running Setup<br>
manually?<br>
<br>
I can&#39;t hard-code base &gt;= 4 into .cabal because that would break for<br>
GHC 6.8 users. &nbsp;I have CPP code that selects what to compile based on<br>
GHC version.<br>
<font color="#888888"><br>
-- John<br>
</font></blockquote></div><br></div>