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