No double `:` in logmsgs without a location

This commit is contained in:
Daniel Gröber 2015-04-12 02:41:57 +02:00
parent 2bf4c80580
commit d7984faf79
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ gmLog level loc' doc = do
GhcModLog { gmLogLevel = level' } <- gmlHistory
let loc | loc' == "" = empty
| otherwise = text loc'
msg = gmRenderDoc $ (gmLogLevelDoc level <+>: loc) <+>: doc
| otherwise = empty <+>: text loc'
msg = gmRenderDoc $ (gmLogLevelDoc level <> loc) <+>: doc
msg' = dropWhileEnd isSpace msg
when (Just level <= level') $