Demangling typeclass functions in GHC profiler output
- by Paul Kuliniewicz
When profiling a Haskell program written in GHC, the names of typeclass functions are mangled in the .prof file to distinguish one instance's implementations of them from another. How can I demangle these names to find out which type's instance it is?
For example, suppose I have the following program, where types Fast and Slow both implement…