3 ms·
There's a "Core" output option which is not far from STG if I remember right.
by tel 11y ago
There's a "Core" output option which is not far from STG if I remember right.
- dllthomas 11y agoGHC also has a -ddump-stg option (according to `ghc --show-options | grep stg`). I assume it does what it says on the tin...
- nickpsecurity 11y agoHere it is: https://downloads.haskell.org/~ghc/7.6.2/docs/html/users_guide/ext-core.html https://downloads.haskell.org/~ghc/7.6.2/docs/html/users_gui... The next page references dllthomas's command. Here's the language it outputs: https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/CoreSynType https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Co... So, the trick to answer our question is if any knowledgeable readers can tell us whether what's in this guide helps on the path to understanding that language. If so, then it's a start to working with and improving it.