<div dir="ltr">Hi Brandon,<div><br></div><div>I definitely have only one instance installed:</div><div><br></div><div><div><font face="courier new, monospace">root@26fc365ee4e6:/# ghc-pkg list | grep hash</font></div><div>
<font face="courier new, monospace">    cryptohash-0.11.2</font></div><div><font face="courier new, monospace">    cryptohash-cryptoapi-0.1.0</font></div><div><font face="courier new, monospace">    hashable-1.2.1.0</font></div>
<div><font face="courier new, monospace">    hashed-storage-0.5.10</font></div><div><font face="courier new, monospace">    hashtables-1.0.1.8</font></div><div><font face="courier new, monospace">    murmur-hash-0.1.0.6</font></div>
<div><font face="courier new, monospace">    static-hash-0.0.1</font></div></div><div><br></div><div>The ubuntu system was built using this <font face="courier new, monospace">Dockerfile</font> from using only standard <font face="courier new, monospace">apt-get</font> commands:</div>
<div><br></div><div><div><font face="courier new, monospace">FROM ubuntu:14.04</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">RUN apt-get update</font></div>
<div><font face="courier new, monospace">RUN apt-get upgrade -y</font></div><div><font face="courier new, monospace">RUN apt-get install -y fakeroot curl dnsutils git golang jq openssh-client openssh-server redis-server telnet unzip vim wget</font></div>
<div><font face="courier new, monospace">RUN apt-get install -y ghc</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-hdbc-dev</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-hdbc-postgresql-dev</font></div>
<div><font face="courier new, monospace">RUN apt-get install -y libghc-hdbc-sqlite3-dev</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-zeromq3-haskell-dev</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-lens-dev</font></div>
<div><font face="courier new, monospace">RUN apt-get install -y libghc-aeson-dev libghc-aeson-pretty-dev libghc-lens-aeson-dev</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-hashable-dev</font></div>
<div><font face="courier new, monospace">RUN apt-get install -y cabal-debian</font></div><div><font face="courier new, monospace">RUN apt-get install -y libghc-cryptohash-cryptoapi-dev libghc-cryptohash-dev libghc-digest-dev libghc-hashable-dev libghc-hashed-storage-dev libghc-hashtables-dev libghc-intern-dev libghc-murmur-hash-dev libghc-puremd5-dev libghc-skein-dev libghc-static-hash-dev libghc-unordered-containers-dev</font></div>
<div><font face="courier new, monospace">RUN apt-get clean</font></div></div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>-John</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 May 2014 11:03, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Sun, May 11, 2014 at 8:58 PM, John Ky <span dir="ltr"><<a href="mailto:john@gocatch.com" target="_blank">john@gocatch.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I have some code that compiles when running on GHC on OS X, but not on Ubuntu:<br></div><div><br></div><div><font face="courier new, monospace">    No instance for (hashable-1.2.1.0:Data.Hashable.Class.GHashable</font></div>


<div><font face="courier new, monospace">                       (GHC.Generics.Rep Point))</font></div><div><font face="courier new, monospace">      arising from a use of `hashable-1.2.1.0:Data.Hashable.Class.$gdmhashWithSalt'</font></div>


<div><font face="courier new, monospace">    Possible fix:</font></div><div><font face="courier new, monospace">      add an instance declaration for</font></div><div><font face="courier new, monospace">      (hashable-1.2.1.0:Data.Hashable.Class.GHashable</font></div>


<div><font face="courier new, monospace">         (GHC.Generics.Rep Point))</font></div><div><font face="courier new, monospace">    In the expression:</font></div><div><font face="courier new, monospace">      (hashable-1.2.1.0:Data.Hashable.Class.$gdmhashWithSalt)</font></div>


<div><font face="courier new, monospace">    In an equation for `hashWithSalt':</font></div><div><font face="courier new, monospace">        hashWithSalt</font></div><div><font face="courier new, monospace">          = (hashable-1.2.1.0:Data.Hashable.Class.$gdmhashWithSalt)</font></div>


<div><font face="courier new, monospace">    In the instance declaration for `Hashable Point'</font></div></div></blockquote><div><br></div></div></div><div>The fully qualified (with package name/version) typeclass makes me think you have multiple versions of the hashable package installed, and the one your source is using is different from one pulled in by something else.</div>

<div><br></div><div>ghc makes it dangerous to have multiple versions of a package installed. Use `ghc-pkg list` to make sure you have only one; if there is one in the global section and another in the local section, remove the local one and reinstall anything broken by that with `cabal install $thepackage --constraint='hashable installed'`.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>

<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</font></span></div></div>
</blockquote></div><br></div>

<br>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font color="#999999"><a href="http://www.gocatch.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/goCatchlogo.png"></a><br></font></div><font color="#999999" style="font-family:arial,sans-serif;background-color:rgb(255,255,255)">  Sydney, Australia</font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font color="#999999"><br></font><div><font color="#999999"> <a href="https://www.facebook.com/goCatch" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/FBsigicon.png"></a> <a href="https://twitter.com/gocatchapp" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/TWsigicon.png"></a> <a href="http://www.linkedin.com/company/goCatch" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/LIsigicon.png"></a>  <a href="https://itunes.apple.com/au/app/gocatch/id444439909?mt=8" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/ASsigicon.png"></a> <a href="https://play.google.com/store/apps/details?id=com.gocatchapp.goCatch&hl=en" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/AMsigicon.png"></a> <a href="http://www.windowsphone.com/en-au/store/app/gocatch/d76b0eb5-bad6-429f-b99e-0ce85d953f93" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/P7sigicon.png"></a> <a href="http://appworld.blackberry.com/webstore/content/31917887/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.gocatch.com/assets/bbworld.jpg"></a></font></div></div>