diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-03-15 09:29:24 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-15 15:23:34 -0400 |
commit | 086b514b199c122b638391f3aa2fbcf15cc10c06 (patch) | |
tree | 1227dbc5061c170fa76ddd938a7ba3ab3ddef1c1 /compiler/main/TidyPgm.hs | |
parent | cc9d574a578090d17d1597628e44371003cb19a7 (diff) | |
download | haskell-086b514b199c122b638391f3aa2fbcf15cc10c06.tar.gz |
Introduce putLogMsg
This factors out the repetition of (log_action dflags dflags) and will
hopefully allow us to someday better abstract log output.
Test Plan: Validate
Reviewers: austin, hvr, goldfire
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3334
Diffstat (limited to 'compiler/main/TidyPgm.hs')
-rw-r--r-- | compiler/main/TidyPgm.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/TidyPgm.hs b/compiler/main/TidyPgm.hs index 26cee48f18..21d0208a07 100644 --- a/compiler/main/TidyPgm.hs +++ b/compiler/main/TidyPgm.hs @@ -416,7 +416,7 @@ tidyProgram hsc_env (ModGuts { mg_module = mod -- Print one-line size info ; let cs = coreBindsStats tidy_binds ; when (dopt Opt_D_dump_core_stats dflags) - (log_action dflags dflags NoReason SevDump noSrcSpan + (putLogMsg dflags NoReason SevDump noSrcSpan (defaultDumpStyle dflags) (text "Tidy size (terms,types,coercions)" <+> ppr (moduleName mod) <> colon |