diff --git a/ghc/docs/users_guide/debugging.sgml b/ghc/docs/users_guide/debugging.sgml index f711a382b8debee81f16ccb1f276f3e1aebae4cc..c143a4068ac10a951819ca20ba51c1e4ddcadc47 100644 --- a/ghc/docs/users_guide/debugging.sgml +++ b/ghc/docs/users_guide/debugging.sgml @@ -196,6 +196,7 @@ parser output </Para> </ListItem> </VarListEntry> + <VarListEntry> <Term><Option>-ddump-rn</Option>:</Term> <ListItem> @@ -205,6 +206,21 @@ renamer output </ListItem> </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>