Hi Lee,<div>I would also guess that these are probably the implementations of equality in the given modules.</div><div><br></div><div>One way to test this would be to name the equality function explicitly.  For example, something like this:</div>
<div><br></div><div>myEquality x y = ...</div><div>instance Eq MyType where (==) = myEquality</div><div><br></div><div>Another option would be to look at the generated core by using -ddump-simpl when compiling. This will generate a whole bunch of output, which you can redirect to a file and the search for the mysterious symbols inside.</div>
<div><br></div><div>Hope this helps,</div><div>-Iavor</div><div><br></div><div><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 11:12 PM, Lee Pike <span dir="ltr">&lt;<a href="mailto:leepike@gmail.com">leepike@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I am profiling a Haskell program using GHC, and after executing the<br>
program with +RTS -p, I get a .prof file that lists the cost centers<br>
of the program.  Some of the cost centers listed are for function<br>
symbols that do not exist in the given module.  For example, I have in<br>
my .prof file:<br>
<br>
COST CENTRE              MODULE   %time %alloc<br>
==_a2MT                        Foo           19.8    0.0<br>
==_a2R8                         Foo           17.8    0.0<br>
==_a2Bg                         Bar           13.7    0.0<br>
                  ....                     ....<br>
<br>
It appears these are generated symbols; how do I find out what those<br>
function symbols correspond to?  (In this case, my assumption is that<br>
these symbols refer to instances of the Eq class, but I&#39;m not sure.)<br>
<br>
[I couldn&#39;t find anything about this in the GHC online documentation<br>
or via Googling, but sorry if I missed it.]<br>
<br>
Thanks,<br>
Lee<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>