Re: Prettyprinting GHC.Stg.Syntax.StgOp

2021-10-02 Thread Ben Gamari
Norman Ramsey 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

Prettyprinting GHC.Stg.Syntax.StgOp

2021-10-01 Thread Norman Ramsey
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. No