summaryrefslogtreecommitdiff
path: root/compiler/main/CmdLineParser.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-05-08 16:13:33 +0100
committerIan Lynagh <igloo@earth.li>2011-05-08 16:13:33 +0100
commitd45197aabb22178066a8ec50d29331786a0c518c (patch)
treefeac564466e2d1182b8d0ee7691580f564cf5b17 /compiler/main/CmdLineParser.hs
parentc5f7496604b096277e3ba57fcb6ed85422613c75 (diff)
parentdaead6bf93cc751417461507048db9b1aa8b669a (diff)
downloadhaskell-coloured-core.tar.gz
Merge branch 'coloured-core' of https://github.com/nominolo/ghc into coloured-corecoloured-core
Diffstat (limited to 'compiler/main/CmdLineParser.hs')
-rw-r--r--compiler/main/CmdLineParser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs
index 67515e53a1..372bd3507e 100644
--- a/compiler/main/CmdLineParser.hs
+++ b/compiler/main/CmdLineParser.hs
@@ -233,5 +233,5 @@ missingArgErr f = Left ("missing argument for flag: " ++ f)
errorsToGhcException :: [Located String] -> GhcException
errorsToGhcException errs =
let errors = vcat [ ppr l <> text ": " <> text e | L l e <- errs ]
- in UsageError (showSDoc $ withPprStyle cmdlineParserStyle errors)
+ in UsageError (renderWithStyle errors cmdlineParserStyle)