summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Plugins/MarqueePipeReader.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-02-12 02:46:02 +0000
committerjao <jao@gnu.org>2025-02-12 02:46:02 +0000
commit7dbc68e896ce23faf7c9b058d4a14eb49ac42da6 (patch)
tree690fcaee545a2bfde373185932b315eb3c9adb31 /src/Xmobar/Plugins/MarqueePipeReader.hs
parentde7a0aff77114638f3e83835de0fe00395fe6bf7 (diff)
downloadxmobar-7dbc68e896ce23faf7c9b058d4a14eb49ac42da6.tar.gz
xmobar-7dbc68e896ce23faf7c9b058d4a14eb49ac42da6.tar.bz2
hlint hintson-click
Diffstat (limited to 'src/Xmobar/Plugins/MarqueePipeReader.hs')
-rw-r--r--src/Xmobar/Plugins/MarqueePipeReader.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xmobar/Plugins/MarqueePipeReader.hs b/src/Xmobar/Plugins/MarqueePipeReader.hs
index 075503c..a6d590e 100644
--- a/src/Xmobar/Plugins/MarqueePipeReader.hs
+++ b/src/Xmobar/Plugins/MarqueePipeReader.hs
@@ -60,7 +60,7 @@ writer txt sep len rate chan cb = do
Nothing -> tenthSeconds rate >> writer (drop 1 txt) sep len rate chan cb
toInfTxt :: String -> String -> String
-toInfTxt line sep = concat (repeat $ line ++ " " ++ sep ++ " ")
+toInfTxt line sep = cycle (line ++ " " ++ sep ++ " ")
checkPipe :: FilePath -> IO ()
checkPipe file = handle (\(SomeException _) -> waitForPipe) $ do