From 49cbda602774bfceec3d31d95ec993aa1afcc74a Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 19 Dec 2023 22:53:24 +0100 Subject: [PATCH] Move newline after resetting the colour --- src/Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.hs b/src/Main.hs index b668574..f0f9994 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -293,11 +293,12 @@ checkUpdateAvailability Package{..} version = do | otherwise -> liftIO $ do setSGR [SetColor Foreground Dull Yellow] - Text.IO.putStrLn + Text.IO.putStr $ "A new version of " <> name <> " " <> getField @"version" parsedInfoFile <> " is available (" <> version <> ")." setSGR [Reset] + putStrLn "" pure $ Just parsedInfoFile Left errorBundle -> liftIO (putStr $ errorBundlePretty errorBundle) >> pure Nothing