PUBLIC Hi,
I'm trying to use `mkIfaceTc` to make a ModIface from the results of
typechecking. Everything goes well until it gets to `makeFullIface`, where it
fails to find some imported fingerprints:
hello: hello: panic! (the 'impossible' happened)
(GHC version 9.0.1:
lookupVers1
MyPrim Foo
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Outputable.hs:1230:37 in
ghc-lib-9.0.1.20210623-3xx7a2u7IkN9vKAnkscROb:GHC.Utils.Outputable
pprPanic, called at compiler/GHC/Iface/Recomp.hs:1455:19 in
ghc-lib-9.0.1.20210623-3xx7a2u7IkN9vKAnkscROb:GHC.Iface.Recomp
I am using the GHC API to load my modules differently than what GHC itself
does; I am attaching the full code, but perhaps to note is that I am creating
ModSummarys one by one and then typechecking and adding them to the
moduleNameProviderMap in dependency order. Also, I am using `downsweep`
directly instead of `depanal`, because the latter's `flushFinderCaches` was
breaking my inter-unit imports.
Because the attached code is a minimized version of something larger, some
parts of it may seem to be doing things in a roundabout way but that's because
in the real program all those degrees of freedom are used. In case that
matters, the only packages in my package DB are rts, ghc-prim-0.7.0 and
ghc-bignum-1.0.
So my question is basically, what am I doing wrong? Why is fingerprinting
failing on `Top.hs`'s import of `MyPrim.hs`, and how do I fix that, while still
keeping this total control over when and how modules are typechecked and loaded?
Thanks,
Gergo
This email and any attachments are confidential and may also be privileged. If
you are not the intended recipient, please delete all copies and notify the
sender immediately. You may wish to refer to the incorporation details of
Standard Chartered PLC, Standard Chartered Bank and their subsidiaries at
https: //www.sc.com/en/our-locations
Where you have a Financial Markets relationship with Standard Chartered PLC,
Standard Chartered Bank and their subsidiaries (the "Group"), information on
the regulatory standards we adhere to and how it may affect you can be found in
our Regulatory Compliance Statement at https: //www.sc.com/rcs/ and Regulatory
Compliance Disclosures at http: //www.sc.com/rcs/fm
Insofar as this communication is not sent by the Global Research team and
contains any market commentary, the market commentary has been prepared by the
sales and/or trading desk of Standard Chartered Bank or its affiliate. It is
not and does not constitute research material, independent research,
recommendation or financial advice. Any market commentary is for information
purpose only and shall not be relied on for any other purpose and is subject to
the relevant disclaimers available at https:
//www.sc.com/en/regulatory-disclosures/#market-disclaimer.
Insofar as this communication is sent by the Global Research team and contains
any research materials prepared by members of the team, the research material
is for information purpose only and shall not be relied on for any other
purpose, and is subject to the relevant disclaimers available at https:
//research.sc.com/research/api/application/static/terms-and-conditions.
Insofar as this e-mail contains the term sheet for a proposed transaction, by
responding affirmatively to this e-mail, you agree that you have understood the
terms and conditions in the attached term sheet and evaluated the merits and
risks of the transaction. We may at times also request you to sign the term
sheet to acknowledge the same.
Please visit https: //www.sc.com/en/regulatory-disclosures/dodd-frank/ for
important information with respect to derivative products.
Top.hs
Description: Top.hs
Main.hs
Description: Main.hs
MyPrim.hs
Description: MyPrim.hs
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
