summaryrefslogtreecommitdiff
path: root/Biz/Log.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-08-02 13:40:13 -0400
committerBen Sima <ben@bsima.me>2022-08-02 13:40:13 -0400
commit0a003c3303cf01744436cdf94a36bc73f196e353 (patch)
tree5a5860148abe90df04d9d5c9d10a53521044fe42 /Biz/Log.hs
parent0727ad4ea80991e2fb104090b6d922557bbea281 (diff)
Simplify analyze code a bit more
Diffstat (limited to 'Biz/Log.hs')
-rw-r--r--Biz/Log.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Biz/Log.hs b/Biz/Log.hs
index c3362d9..286e00a 100644
--- a/Biz/Log.hs
+++ b/Biz/Log.hs
@@ -9,6 +9,7 @@ module Biz.Log
info,
warn,
fail,
+ wipe,
-- * Debugging
mark,
@@ -72,6 +73,9 @@ gap = ": "
br :: IO ()
br = Rainbow.hPutChunks stderr ["\n"] >> IO.hFlush stderr
+wipe :: IO ()
+wipe = hPutStr stderr ("\r" :: Text) >> IO.hFlush stderr
+
good, pass, info, warn, fail :: [Text] -> IO ()
good = msg Good
pass = msg Pass