summaryrefslogtreecommitdiff
path: root/Property.hs
diff options
context:
space:
mode:
authorJoey Hess2014-03-30 20:23:23 -0400
committerJoey Hess2014-03-30 20:23:23 -0400
commite563b8cdf617a9545919472f2f37bef6050e4e88 (patch)
treec4cfa7cf4bef3e0448deee9456ea1c99dd6d4978 /Property.hs
parent614d49789566cdf119997bf12c0d7494e386d4dd (diff)
propellor spin
Diffstat (limited to 'Property.hs')
-rw-r--r--Property.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Property.hs b/Property.hs
index e83c75de..9361de02 100644
--- a/Property.hs
+++ b/Property.hs
@@ -116,3 +116,10 @@ ensureProperties' ps = ensure ps NoChange
putStrLn "done"
setSGR []
ensure ls (combineResult r rs)
+
+warningMessage :: String -> IO ()
+warningMessage s = do
+ setSGR [SetColor Foreground Vivid Red]
+ putStrLn $ "** warning: " ++ s
+ setSGR []
+ hFlush stdout