Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
23bc35d6
Commit
23bc35d6
authored
Dec 08, 2009
by
simonpj@microsoft.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve dumping for rules, and documentation of same
Inspired by Trac #3703
parent
f4b72748
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
compiler/simplCore/SimplCore.lhs
compiler/simplCore/SimplCore.lhs
+2
-2
docs/users_guide/debugging.xml
docs/users_guide/debugging.xml
+3
-2
docs/users_guide/glasgow_exts.xml
docs/users_guide/glasgow_exts.xml
+6
-3
No files found.
compiler/simplCore/SimplCore.lhs
View file @
23bc35d6
...
...
@@ -323,9 +323,9 @@ prepareRules hsc_env@(HscEnv { hsc_dflags = dflags, hsc_HPT = hpt })
; Err.dumpIfSet_dyn dflags Opt_D_dump_rules "Transformation rules"
(withPprStyle (mkUserStyle (mkPrintUnqualified dflags rdr_env) AllTheWay) $
vcat [text "Local rules", pprRules simpl_rules,
vcat [text "Local rules
for local Ids
", pprRules simpl_rules,
blankLine,
text "
Imported rule
s", pprRuleBase hpt_rule_base])
text "
Local rules for imported Id
s", pprRuleBase hpt_rule_base])
; return (hpt_rule_base, guts { mg_binds = binds_w_rules,
mg_rules = rules_for_imps })
...
...
docs/users_guide/debugging.xml
View file @
23bc35d6
...
...
@@ -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>
...
...
docs/users_guide/glasgow_exts.xml
View file @
23bc35d6
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment