<div dir="auto">Thanks, this works!<div dir="auto"><br></div><div dir="auto">I guess this is the kind of problems I run into by using `mkIface_` directly instead of via `mkIfaceTc`. Unfortunately, if I try that, I end up with a panic in `GHC.Iface.Recomp.mkHashFun` in my real program (see separate email earlier).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 27, 2021, 16:14 Sylvain Henry <<a href="mailto:sylvain@haskus.fr">sylvain@haskus.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>> <span style="font-size:10.0pt;font-family:"Arial",sans-serif">What
am I doing wrong? Is filling the `mi_fixities` field of the
`ModIface` not enough to let importers see the correct fixities?</span></p>
<p>It seems like the renamer is looking for the fixities via
`mi_fix_fn (mi_final_exts iface)`, not `mi_fixities`.</p>
<p>You should try to replace:</p>
<p> , mi_final_exts = mi_final_exts empty</p>
<p>with:<br>
</p>
<p> , mi_final_exts = (mi_final_exts empty){ mi_fix_fn =
mkIfaceFixCache (mi_fixities partial)</p>
<p><br>
</p>
</div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank" rel="noreferrer">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>