X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FCmdLineParser.hs;h=64d218d39036a83770d13a9008fa3325649cf1ae;hb=c9bb6b63aa1f479a3dd3679c7e4c2c69471a4912;hp=f6b887e2f6d156e87dd09129b4f950a011cee824;hpb=f92dd77cd9555984823cb45ca4b5bf78eebd2444;p=ghc-hetmet.git diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs index f6b887e..64d218d 100644 --- a/compiler/main/CmdLineParser.hs +++ b/compiler/main/CmdLineParser.hs @@ -184,5 +184,5 @@ putCmdLineState s = CmdLineP $ \_ -> ((),s) errorsToGhcException :: [Located String] -> GhcException errorsToGhcException errs = let errors = vcat [ ppr l <> text ": " <> text e | L l e <- errs ] - in UsageError (showSDoc errors) + in UsageError (showSDoc $ withPprStyle cmdlineParserStyle errors)