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

Stack lock issue

2021-10-01 Thread Dominick Samperi
Hi, Stack install does its thing in some hashed directory under .stack-work by default, but I want to write to /bin as part of the configure process. I'm trying to do this as follows: -- configure file contains: cd $(stack path --project-root) echo "..." > .bin/foo.sh cd - > cd > stack install