diff options
| author | Joey Hess <joey@kitenet.net> | 2014-03-30 20:23:23 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-03-30 20:23:23 -0400 |
| commit | e563b8cdf617a9545919472f2f37bef6050e4e88 (patch) | |
| tree | c4cfa7cf4bef3e0448deee9456ea1c99dd6d4978 /Property.hs | |
| parent | 614d49789566cdf119997bf12c0d7494e386d4dd (diff) | |
propellor spin
Diffstat (limited to 'Property.hs')
| -rw-r--r-- | Property.hs | 7 |
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 |
