diff options
author | simonpj@microsoft.com <unknown> | 2009-12-08 10:55:56 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2009-12-08 10:55:56 +0000 |
commit | 23bc35d6bbfefa7def797eb0868cc88e02633914 (patch) | |
tree | be478f495be10858e9a7d1020342c64f8b39404a /docs/users_guide | |
parent | f4b727487a65e6b611bbaafbd2207bd63a8df706 (diff) | |
download | haskell-23bc35d6bbfefa7def797eb0868cc88e02633914.tar.gz |
Improve dumping for rules, and documentation of same
Inspired by Trac #3703
Diffstat (limited to 'docs/users_guide')
-rw-r--r-- | docs/users_guide/debugging.xml | 5 | ||||
-rw-r--r-- | docs/users_guide/glasgow_exts.xml | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/docs/users_guide/debugging.xml b/docs/users_guide/debugging.xml index d1e9e16e9c..513b26fc28 100644 --- a/docs/users_guide/debugging.xml +++ b/docs/users_guide/debugging.xml @@ -120,8 +120,9 @@ <indexterm><primary><option>-ddump-rules</option></primary></indexterm> </term> <listitem> - <para>dumps all rewrite rules (including those generated - by the specialisation pass)</para> + <para>dumps all rewrite rules specified in this module; + see <xref linkend="controlling-rules"/>. + </para> </listitem> </varlistentry> diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 7e88a4f480..603c6c69df 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -8605,8 +8605,8 @@ comparison. </sect2> -<sect2> -<title>Controlling what's going on</title> +<sect2 id="controlling-rules"> +<title>Controlling what's going on in rewrite rules</title> <para> @@ -8614,7 +8614,10 @@ comparison. <listitem> <para> - Use <option>-ddump-rules</option> to see what transformation rules GHC is using. +Use <option>-ddump-rules</option> to see the rules that are defined +<emphasis>in this module</emphasis>. +This includes rules generated by the specialisation pass, but excludes +rules imported from other modules. </para> </listitem> |