The following change in .cabal file may solve the problems:<div>---</div><div><div>flag base4</div><div> description: Choose base-4 if possible</div><div> default: True</div><div><br></div><div>library</div><div> if flag(splitBase)</div>
<div> if flag(base4)</div><div> Build-Depends: base>=4, old-time, time, bytestring, containers, old-locale</div><div> else</div><div> Build-Depends: base>=3, old-time, time, bytestring, containers, old-locale</div>
<div> else</div><div> Build-Depends: base<3</div><div> Build-Depends: mtl, convertible >= 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"><<a href="mailto:jgoerzen@complete.org">jgoerzen@complete.org</a>></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>
> > I got the same error: Windows XP, GHC 6.10.1.<br>
> > For some reason imported Control.Exception module appears to be 6.8.*<br>
> > version.<br>
> ><br>
><br>
> I found a (temporary) fix: change dependancy in .cabal file to state "base<br>
> >= 4". Otherwise cabal-install selects base-3 which is the cause of the<br>
> 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't hard-code base >= 4 into .cabal because that would break for<br>
GHC 6.8 users. 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>