Commit d2bb4777 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Tweak the way UsageErrors are constructed

Using 'unlines' meant that we get a trailing newline, which gave
different output.
parent d06edb8e
......@@ -243,5 +243,6 @@ missingArgErr f = Left ("missing argument for flag: " ++ f)
errorsToGhcException :: [Located String] -> GhcException
errorsToGhcException errs =
UsageError $ unlines [ showUserSpan True l ++ ": " ++ e | L l e <- errs ]
UsageError $
intercalate "\n" [ showUserSpan True l ++ ": " ++ e | L l e <- errs ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment