Skip to content

Base new top-level names on the binder the code originated from (if any)

Generated top-level names currently starts with a followed by some unique string. It would be nice if it the new name was based on the binder the code originated from, making the Core easier to read.

In ticket #3693 (closed) batterseapower made such a change in an unrelated patch. http://hackage.haskell.org/trac/ghc/attachment/ticket/3693/StackTraces.dpatch

If someone has a good suggestion for naming I could try to implement this. How about changing <a>_<unique string> to <originating binder>_<unique string>?

Trac metadata
Trac field Value
Version 6.12.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information