A -ddump-* flag to dump memory representation of data types.
I'm regularly asked, or asking myself what is the memory layout of various datatypes
- recently by @maerwald for his string type guide https://hasufell.github.io/posts/2024-05-07-ultimate-string-guide.html
- Before that in argument with @tomjaguarpaw1 in https://www.reddit.com/r/haskell/comments/1bwfyj5/what_is_the_reason_behind_the_need_of_explicitly/
So I a request a feature that GHC should be able to dump the memory representations for the datatypes, so such arguments would have a definitive answers, and not people trying to reverse engineer GHC.