[project @ 2000-08-31 09:53:08 by simonpj]
authorsimonpj <unknown>
Thu, 31 Aug 2000 09:53:08 +0000 (09:53 +0000)
committersimonpj <unknown>
Thu, 31 Aug 2000 09:53:08 +0000 (09:53 +0000)
Document -ddump-minimal-imports

ghc/docs/users_guide/debugging.sgml

index f711a38..c143a40 100644 (file)
@@ -196,6 +196,7 @@ parser output
 </Para>
 </ListItem>
 </VarListEntry>
+
 <VarListEntry>
 <Term><Option>-ddump-rn</Option>:</Term>
 <ListItem>
@@ -206,6 +207,21 @@ renamer output
 </VarListEntry>
 
 <VarListEntry>
+<Term><Option>-ddump-minimal-imports</Option>:</Term>
+<ListItem>
+<Para>
+Dump to the file "M.imports" (where M is the module being compiled)
+a "minimal" set of import declarations.  You can safely replace
+all the import declarations in "M.hs" with those found in "M.imports".
+Why would you want to do that?  Because the "minimal" imports (a) import
+everything explicitly, by name, and (b) import nothing that is not required.
+It can be quite painful to maintain this property by hand, so this flag is
+intended to reduce the labour.
+</Para>
+</ListItem>
+</VarListEntry>
+
+<VarListEntry>
 <Term><Option>-ddump-tc</Option>:</Term>
 <ListItem>
 <Para>