@@ -89,7 +89,7 @@ parseFlags = many $
89 <|> (OLogCats <$> option (str >>= parseLogCats)
89 <|> (OLogCats <$> option (str >>= parseLogCats)
90 (long "logging-categories"
90 (long "logging-categories"
91 <> metavar "CATS"
91 <> metavar "CATS"
92− <> help "Colon separated logging categories: parser, elab, codegen, coverage, erasure"))
92+ <> help "Colon separated logging categories. Use --listlogcats to see list."))
94 -- Turn off Certain libraries.
94 -- Turn off Certain libraries.
95 <|> flag' NoBasePkgs (long "nobasepkgs" <> help "Do not use the given base package")
95 <|> flag' NoBasePkgs (long "nobasepkgs" <> help "Do not use the given base package")
@@ -106,11 +106,13 @@ parseFlags = many $
106 <|> flag' WarnReach (long "warnreach" <> help "Warn about reachable but inaccessible arguments")
106 <|> flag' WarnReach (long "warnreach" <> help "Warn about reachable but inaccessible arguments")
107 <|> flag' NoCoverage (long "nocoverage")
107 <|> flag' NoCoverage (long "nocoverage")
108 <|> flag' ErrContext (long "errorcontext")
108 <|> flag' ErrContext (long "errorcontext")
110+ <|> flag' ShowLoggingCats (long "listlogcats" <> help "Display logging categories")
109− <|> flag' ShowLibs (long "link" <> help "Display link flags")
111+ <|> flag' ShowLibs (long "link" <> help "Display link flags")
110− <|> flag' ShowPkgs (long "listlibs" <> help "Display installed libraries")
112+ <|> flag' ShowPkgs (long "listlibs" <> help "Display installed libraries")
111− <|> flag' ShowLibdir (long "libdir" <> help "Display library directory")
113+ <|> flag' ShowLibdir (long "libdir" <> help "Display library directory")
112− <|> flag' ShowIncs (long "include" <> help "Display the includes flags")
114+ <|> flag' ShowIncs (long "include" <> help "Display the includes flags")
113− <|> flag' Verbose (short 'V' <> long "verbose" <> help "Loud verbosity")
115+ <|> flag' Verbose (short 'V' <> long "verbose" <> help "Loud verbosity")
114 <|> (IBCSubDir <$> strOption (long "ibcsubdir" <> metavar "FILE" <> help "Write IBC files into sub directory"))
116 <|> (IBCSubDir <$> strOption (long "ibcsubdir" <> metavar "FILE" <> help "Write IBC files into sub directory"))
115 <|> (ImportDir <$> strOption (short 'i' <> long "idrispath" <> help "Add directory to the list of import paths"))
117 <|> (ImportDir <$> strOption (short 'i' <> long "idrispath" <> help "Add directory to the list of import paths"))
116 <|> flag' WarnOnly (long "warn")
118 <|> flag' WarnOnly (long "warn")
@@ -189,12 +191,12 @@ parseLogCats s =
189 return (concat cs)
191 return (concat cs)
191 parseLogCat :: ReadP [LogCat]
193 parseLogCat :: ReadP [LogCat]
192− parseLogCat = (string "parser" *> return parserCats)
194+ parseLogCat = (string (strLogCat IParse) *> return parserCats)
193− <|> (string "elab" *> return elabCats)
195+ <|> (string (strLogCat IElab) *> return elabCats)
194− <|> (string "codegen" *> return codegenCats)
196+ <|> (string (strLogCat ICodeGen) *> return codegenCats)
195− <|> (string "coverage" *> return [ICoverage])
197+ <|> (string (strLogCat ICoverage) *> return [ICoverage])
196− <|> (string "ibc" *> return [IIBC])
198+ <|> (string (strLogCat IIBC) *> return [IIBC])
197− <|> (string "erasure" *> return [IErasure])
199+ <|> (string (strLogCat IErasure) *> return [IErasure])
198 <|> parseLogCatBad
200 <|> parseLogCatBad
200 parseLogCatBad :: ReadP [LogCat]
202 parseLogCatBad :: ReadP [LogCat]