update documentation to reflect change from _scc_ to {-# SCC ".." #-}
<para>The syntax of a cost centre annotation is</para>
<programlisting>
<para>The syntax of a cost centre annotation is</para>
<programlisting>
- _scc_ "name" <expression>
+ {-# SCC "name" #-} <expression>
</programlisting>
<para>where <literal>"name"</literal> is an aribrary string,
that will become the name of your cost centre as it appears
in the profiling output, and
<literal><expression></literal> is any Haskell
</programlisting>
<para>where <literal>"name"</literal> is an aribrary string,
that will become the name of your cost centre as it appears
in the profiling output, and
<literal><expression></literal> is any Haskell
- expression. An <literal>_scc_</literal> annotation extends as
+ expression. An <literal>SCC</literal> annotation extends as
far to the right as possible when parsing.</para>
</sect2>
far to the right as possible when parsing.</para>
</sect2>
<para>If the expression is part of the
<firstterm>one-off</firstterm> costs of evaluating the
enclosing top-level definition, then costs are attributed to
<para>If the expression is part of the
<firstterm>one-off</firstterm> costs of evaluating the
enclosing top-level definition, then costs are attributed to
- the stack of lexically enclosing <literal>_scc_</literal>
+ the stack of lexically enclosing <literal>SCC</literal>
annotations on top of the special <literal>CAF</literal>
cost-centre. </para>
</listitem>
<listitem>
<para>Otherwise, costs are attributed to the stack of
annotations on top of the special <literal>CAF</literal>
cost-centre. </para>
</listitem>
<listitem>
<para>Otherwise, costs are attributed to the stack of
- lexically-enclosing <literal>_scc_</literal> annotations,
+ lexically-enclosing <literal>SCC</literal> annotations,
appended to the cost-centre stack in effect at the
<firstterm>call site</firstterm> of the current top-level
definition<footnote> <para>The call-site is just the place
appended to the cost-centre stack in effect at the
<firstterm>call site</firstterm> of the current top-level
definition<footnote> <para>The call-site is just the place