summaryrefslogtreecommitdiff
path: root/compiler/main/TidyPgm.hs
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-03-15 09:29:24 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-15 15:23:34 -0400
commit086b514b199c122b638391f3aa2fbcf15cc10c06 (patch)
tree1227dbc5061c170fa76ddd938a7ba3ab3ddef1c1 /compiler/main/TidyPgm.hs
parentcc9d574a578090d17d1597628e44371003cb19a7 (diff)
downloadhaskell-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.hs2
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