<div dir="ltr"><div>It looks like the binary package got its own instance for the version datatype.  You could probably make it build by just removing that instance from Binary.hs.<br><br></div>And I don't want to dissuade you, but unless there is a reason for you to use jhc, just be aware that ghc has pretty much become the defacto haskell compiler and the others have started to bit rot.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 24, 2016 at 7:05 AM, Fabien R <span dir="ltr"><<a href="mailto:theedge456@free.fr" target="_blank">theedge456@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I want to build jhc 0.82 on debian/amd64.<br>
I downloaded the sources and successfully configured the build.<br>
The compilation fails with this error:<br>
<br>
[149 of 186] Compiling Ho.Binary        ( src/Ho/Binary.hs, src/Ho/Binary.o )<br>
<br>
src/Ho/Binary.hs:164:10:<br>
    Duplicate instance declarations:<br>
      instance [overlap ok] Binary Data.Version.Version<br>
        -- Defined at src/Ho/Binary.hs:164:10<br>
      instance [safe] Binary Data.Version.Version<br>
        -- Defined in `binary-0.8.0.0:Data.Binary.Class'<br>
Makefile:1441: recipe for target 'jhc' failed<br>
<br>
The corresponding source code in src/Ho/Binary.hs is:<br>
<br>
import Data.Binary<br>
import qualified Data.Version<br>
<br>
instance Binary Data.Version.Version where<br>
    put (Data.Version.Version a b) = put a >> put b<br>
    get = liftM2 Data.Version.Version get get<br>
<br>
In the package binary, is this error due to this line ?<br>
<br>
import Data.Version (Version(..))<br>
<br>
Any hint to solve this ?<br>
<br>
--<br>
Fabien<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>