It was indeed an old .hi file. Thanks! - Conal<br><br><div><span class="gmail_quote">On 1/7/07, <b class="gmail_sendername">Duncan Coutts</b> <<a href="mailto:duncan.coutts@worc.ox.ac.uk">duncan.coutts@worc.ox.ac.uk</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sun, 2007-01-07 at 12:32 -0800, Conal Elliott wrote:<br>> Thanks. Looks simple enough, and I compiled up a version that works
<br>> this way. I don't know how to get ghc to use it. When I "./setup<br>> install", I get Cabal-1.1.7 registered, but my ghc-6.6 wants to use<br>> Cabal-1.1.6 instead.<br><br>Try cleaning and rebuilding your prog, you've probably got existing .hi
<br>files that refer to the older package version. That or perhaps you are<br>using other packages that were built against Cabal-1.1.6, eg the ghc api<br>package. You can force ghc to use a specific version using "ghc -package
<br>Cabal-1.1.7" and see what it complains about.<br><br>> Worse, I unregistered 1.1.6, and now I can't use cabal at all with<br>> ghc. Do you know how get 1.1.6 back short of re-installing ghc?<br><br>You can re-register the old version, though I'm not sure where you can
<br>get the right package.conf file from. If you built from source you can<br>grab the file from the build tree. If you installed from a distro<br>package then re-installing that should be easy.<br><br>> BTW, I noticed in the function "haddock" in
Distribution.Simple , the<br>> line "++ programArgs confHaddock", which leads me to suspect that<br>> there's an approach getting extra Haddock arguments passed by tweaking<br>> my Setup.lhs. Is that so?
<br><br>Ask on the cabal-devel list, I'm not sure without delving into the code.<br><br>Duncan<br><br></blockquote></div><br>