Thanks Alexander. However, I'm not sure how to use the workaround described so I can get hackage to properly compile my package. It sounds like I have to add a "template-haskell >= 2.7.0.0" dependency to my own cabal file, which sounds like the wrong thing to do in the long-run.<div>
<br></div><div>Is there something that can be done on the hackage/ghc side to avoid this issue? Or something less drastic than adding a template-haskell dependency on my own package's cabal file?</div><div><br></div><div>
Thanks,</div><div><br></div><div>-Levent.<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 7:31 AM, Alexander Foremny <span dir="ltr"><<a href="mailto:alexanderforemny@gmail.com" target="_blank">alexanderforemny@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Dear Levent,<br>
<br>
I think this [1] could be related.<br>
<br>
Regards,<br>
Alexander Foremny<br>
<br>
</div>PS. Sent this to Levent directly. Here's a copy for the mailing list.<br>
Sorry for the noise.<br>
<br>
[1] <a href="http://haskell.1045720.n5.nabble.com/Bad-interface-problem-td5714184.html" target="_blank">http://haskell.1045720.n5.nabble.com/Bad-interface-problem-td5714184.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
---------- Forwarded message ----------<br>
From: Alexander Foremny <<a href="mailto:alexanderforemny@gmail.com">alexanderforemny@gmail.com</a>><br>
Date: 2012/7/17<br>
Subject: Re: [Haskell-cafe] hackage compile failure with QuickCheck 2.5<br>
To: Levent Erkok <<a href="mailto:erkokl@gmail.com">erkokl@gmail.com</a>><br>
<br>
<br>
Dear Levent,<br>
<br>
I think this [1] could be related.<br>
<br>
Regards,<br>
Alexander Foremny<br>
<br>
[1] <a href="http://haskell.1045720.n5.nabble.com/Bad-interface-problem-td5714184.html" target="_blank">http://haskell.1045720.n5.nabble.com/Bad-interface-problem-td5714184.html</a><br>
<br>
2012/7/17 Levent Erkok <<a href="mailto:erkokl@gmail.com">erkokl@gmail.com</a>>:<br>
> [This message is more appropriate for a hackage mailing list I presume, but<br>
> that doesn't seem to exist. Let me know if there's a better place to send<br>
> it.]<br>
><br>
> I'm having a hackage compile failure for a newly uplodaded package that has<br>
> a QuickCheck 2.5 dependence. The error message is:<br>
><br>
> [13 of 13] Compiling Test.QuickCheck.All ( Test/QuickCheck/All.hs,<br>
> dist/build/Test/QuickCheck/All.o )<br>
><br>
> Test/QuickCheck/All.hs:15:1:<br>
> Bad interface file:<br>
> /usr/local/tmp/archive/install/lib/template-haskell-2.6.0.0/ghc-7.4.1/Language/Haskell/TH.hi<br>
> Something is amiss; requested module<br>
> template-haskell-2.6.0.0:<a href="http://Language.Haskell.TH" target="_blank">Language.Haskell.TH</a> differs from name found in the<br>
> interface file template-haskell:<a href="http://Language.Haskell.TH" target="_blank">Language.Haskell.TH</a><br>
><br>
><br>
> The full log file is at (search for "Something is a miss" in it):<br>
> <a href="http://hackage.haskell.org/packages/archive/sbv/2.2/logs/failure/ghc-7.4" target="_blank">http://hackage.haskell.org/packages/archive/sbv/2.2/logs/failure/ghc-7.4</a><br>
><br>
> Needless to say, I don't see this problem when I compile this package at<br>
> home with the same compiler (ghc 7.4.1) as hackage is using; also Hackage<br>
> has a successfully compiled QuickCheck 2.5 package.<br>
><br>
> Could it be something related to the particular cabal/ghc installation on<br>
> the hackage server? In particular, I don't understand why it picks<br>
> template-haskell 2.6.0.0 when there's a newer version (2.7.0.0). As far as I<br>
> can see, QuickCheck doesn't put an upper limit on its template haskell<br>
> version dependency.<br>
><br>
> I'd appreciate any pointers with this. (Googling and questions on the<br>
> #haskell irc channel didn't help much, unfortunately.)<br>
><br>
> -Levent.<br>
><br>
><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>
<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>
</div></div></blockquote></div><br></div>