multiple top level Main.main binders in STG

Ben Gamari ben at well-typed.com
Fri Nov 2 22:18:22 UTC 2018


Csaba Hruska <csaba.hruska at gmail.com> writes:

> Hello,
>
> I added an STG exporter to my modified GHC to do experiments with the STG
> representation of the program.
> I noticed that there are multiple top-level binders for *Main.main*
> function.
> Is this a convention or a bug?
>
What GHC command line did you use to produce this output? Is it possible
that you passed -dsuppress-uniques? If so the multiple `main`s probably
differ in unique.

Cheers,

- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20181102/10d3e385/attachment.sig>


More information about the ghc-devs mailing list