Hi,<div><br></div><div>Maybe you can use UniqFM for your map: <br><a href="https://hackage.haskell.org/package/ghc-8.2.1/docs/UniqFM.html">https://hackage.haskell.org/package/ghc-8.2.1/docs/UniqFM.html</a></div><div><br></div><div>Regards,</div><div>Benno</div><div><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Levent,<br>
<br>
that seems to be this commit, part of the making-ghc-deterministic effort:<br>
<br>
<a href="https://ghc.haskell.org/trac/ghc/ticket/4012#comment:213" rel="noreferrer" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/4012#comment:213</a><br>
<br>
CC @niteria who might be answer your question.<br>
<br>
Niklas<br>
<br>
On 29/07/17 08:12, Levent Erkok wrote:<br>
> I'm trying to port some plugin code from GHC 8.0.2 to GHC 8.2.1; alas<br>
> I'm getting an error suggesting that TyCon is no longer an instance of<br>
Ord:<br>
><br>
> Data/SBV/Plugin/Analyze.hs:580:33: error:<br>
> • No instance for (Ord TyCon) arising from a use of ‘M.lookup’<br>
> There are instances for similar types:<br>
> instance Ord GHC.Types.TyCon -- Defined in ‘GHC.Classes’<br>
> • In the expression: k `M.lookup` tcMap<br>
> In the expression:<br>
> case k `M.lookup` tcMap of<br>
> Just knd -> return knd<br>
> Nothing -> unknown<br>
> In a case alternative:<br>
> Just k<br>
> -> case k `M.lookup` tcMap of<br>
> Just knd -> return knd<br>
> Nothing -> unknown<br>
> |<br>
> 580 | Just k -> case k `M.lookup` tcMap of<br>
> | ^^^^^^^^^^^^^^^^^^<br>
><br>
> I was using TyCon's as a key in a map, but that code is no longer<br>
> compiling. I've looked through the release notes but couldn't find what<br>
> the new mechanism is.<br>
><br>
> I'd appreciate if someone can point me in the right direction regarding<br>
> how to use TyCon as a map key..<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div>