From 394e677da617e9ada2cb1d9cd067576fb0624c8e Mon Sep 17 00:00:00 2001 From: simonpj <unknown> Date: Thu, 31 Aug 2000 09:53:08 +0000 Subject: [PATCH] [project @ 2000-08-31 09:53:08 by simonpj] Document -ddump-minimal-imports --- ghc/docs/users_guide/debugging.sgml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ghc/docs/users_guide/debugging.sgml b/ghc/docs/users_guide/debugging.sgml index f711a382b8de..c143a4068ac1 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> -- GitLab