X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDynFlags.hs;h=e405aea4fe1ba0b4e1e8cfdda8210fe4d41ccc1c;hp=2f3e9f41fe13a72d40f4945b89ca960a5709f135;hb=d45197aabb22178066a8ec50d29331786a0c518c;hpb=c5f7496604b096277e3ba57fcb6ed85422613c75 diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 2f3e9f4..e405aea 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -804,12 +804,12 @@ defaultDynFlags mySettings = log_action = \severity srcSpan style msg -> case severity of - SevOutput -> printOutput (msg style) - SevInfo -> printErrs (msg style) - SevFatal -> printErrs (msg style) + SevOutput -> printSDoc msg style + SevInfo -> printErrs msg style + SevFatal -> printErrs msg style _ -> do hPutChar stderr '\n' - printErrs ((mkLocMessage srcSpan msg) style) + printErrs (mkLocMessage srcSpan msg) style -- careful (#2302): printErrs prints in UTF-8, whereas -- converting to string first and using hPutStr would -- just emit the low 8 bits of each unicode char.