Where else do I need to register fixity declarations?
Gergő Érdi
gergo at erdi.hu
Tue Jul 27 08:52:26 UTC 2021
Thanks, this works!
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).
On Tue, Jul 27, 2021, 16:14 Sylvain Henry <sylvain at haskus.fr> wrote:
> > What am I doing wrong? Is filling the `mi_fixities` field of the
> `ModIface` not enough to let importers see the correct fixities?
>
> It seems like the renamer is looking for the fixities via `mi_fix_fn
> (mi_final_exts iface)`, not `mi_fixities`.
>
> You should try to replace:
>
> , mi_final_exts = mi_final_exts empty
>
> with:
>
> , mi_final_exts = (mi_final_exts empty){ mi_fix_fn = mkIfaceFixCache
> (mi_fixities partial)
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210727/2f08a8c2/attachment.html>
More information about the ghc-devs
mailing list