Prettyprinting GHC.Stg.Syntax.StgOp

Ben Gamari ben at
Sat Oct 2 15:23:23 UTC 2021

Norman Ramsey <nr at> writes:

> Type StgOp and its constructors are exported from module
> GHC.Stg.Syntax.  But the prettyprinting function pprStgOp is not
> exported.  I'm thinking of exporting the function and also
> of defining an instance of Outputable.  Is there any reason not to?
> If this sounds OK to people, I'll make a PR.
An Outputable instance seems quite reasonable to me. Exporting pprStgOp
seems less necessary but I wouldn't object.


- 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