[project @ 1999-06-30 09:43:57 by simonpj]
authorsimonpj <unknown>
Wed, 30 Jun 1999 09:43:57 +0000 (09:43 +0000)
committersimonpj <unknown>
Wed, 30 Jun 1999 09:43:57 +0000 (09:43 +0000)
Make the r.u.n message happen only with -DDEBUG

ghc/compiler/rename/Rename.lhs

index 38100f0..ab38df6 100644 (file)
@@ -497,7 +497,7 @@ reportUnusedNames gbl_env avail_env (ExportEnv export_avails _) mentioned_names
                    | sub_name <- nameSetToList used_names,
                      let avail = case lookupNameEnv avail_env sub_name of
                            Just avail -> avail
-                           Nothing -> pprTrace "r.u.n" (ppr sub_name) $
+                           Nothing -> WARN( True, text "reportUnusedName: not in avail_env" <+> ppr sub_name )
                                       Avail sub_name
                    ]