multiple top level Main.main binders in STG

Ben Gamari ben at
Fri Nov 2 22:18:22 UTC 2018

Csaba Hruska <csaba.hruska at> 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.


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list