summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-02-04 00:00:57 +0000
committerjao <jao@gnu.org>2022-02-04 00:00:57 +0000
commit1e9b9e068844454335bc9d4728cf738eb2b3ceed (patch)
tree5613b2a5cabaa75a21e0979b9635ea77dbe2db4a
parent76557c53f60bab75459db03e29c50f5d6ae55309 (diff)
downloadxmobar-1e9b9e068844454335bc9d4728cf738eb2b3ceed.tar.gz
xmobar-1e9b9e068844454335bc9d4728cf738eb2b3ceed.tar.bz2
Xmobar.App.Timer -> Xmobar.Run.Timer
-rw-r--r--src/Xmobar/App/CommandThreads.hs2
-rw-r--r--src/Xmobar/Plugins/Monitors/Cpu.hs4
-rw-r--r--src/Xmobar/Run/Exec.hs2
-rw-r--r--src/Xmobar/Run/Timer.hs (renamed from src/Xmobar/App/Timer.hs)6
-rw-r--r--xmobar.cabal4
5 files changed, 9 insertions, 9 deletions
diff --git a/src/Xmobar/App/CommandThreads.hs b/src/Xmobar/App/CommandThreads.hs
index 931a072..28bf926 100644
--- a/src/Xmobar/App/CommandThreads.hs
+++ b/src/Xmobar/App/CommandThreads.hs
@@ -34,7 +34,7 @@ import Xmobar.Config.Types
import Xmobar.Run.Runnable (Runnable)
import Xmobar.Run.Exec (start, trigger, alias)
import Xmobar.Run.Template
-import Xmobar.App.Timer (withTimer)
+import Xmobar.Run.Timer (withTimer)
#ifdef DBUS
import Xmobar.System.DBus
diff --git a/src/Xmobar/Plugins/Monitors/Cpu.hs b/src/Xmobar/Plugins/Monitors/Cpu.hs
index d74e45c..adf737f 100644
--- a/src/Xmobar/Plugins/Monitors/Cpu.hs
+++ b/src/Xmobar/Plugins/Monitors/Cpu.hs
@@ -4,7 +4,7 @@
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.Cpu
--- Copyright : (c) 2011, 2017 Jose Antonio Ortega Ruiz
+-- Copyright : (c) 2011, 2017, 2022 Jose Antonio Ortega Ruiz
-- (c) 2007-2010 Andrea Rossato
-- License : BSD-style (see LICENSE)
--
@@ -30,7 +30,7 @@ module Xmobar.Plugins.Monitors.Cpu
import Xmobar.Plugins.Monitors.Common
import Data.IORef (newIORef)
import System.Console.GetOpt
-import Xmobar.App.Timer (doEveryTenthSeconds)
+import Xmobar.Run.Timer (doEveryTenthSeconds)
import Control.Monad (void)
import Xmobar.Plugins.Monitors.Cpu.Common (CpuData(..))
diff --git a/src/Xmobar/Run/Exec.hs b/src/Xmobar/Run/Exec.hs
index e1b6709..1879361 100644
--- a/src/Xmobar/Run/Exec.hs
+++ b/src/Xmobar/Run/Exec.hs
@@ -22,7 +22,7 @@ module Xmobar.Run.Exec (Exec (..), tenthSeconds, doEveryTenthSeconds) where
import Prelude
import Data.Char
-import Xmobar.App.Timer (doEveryTenthSeconds, tenthSeconds)
+import Xmobar.Run.Timer (doEveryTenthSeconds, tenthSeconds)
import Xmobar.System.Signal
class Show e => Exec e where
diff --git a/src/Xmobar/App/Timer.hs b/src/Xmobar/Run/Timer.hs
index 23c48c0..1df2c23 100644
--- a/src/Xmobar/App/Timer.hs
+++ b/src/Xmobar/Run/Timer.hs
@@ -1,8 +1,8 @@
{-# LANGUAGE LambdaCase #-}
------------------------------------------------------------------------------
-- |
--- Module: Xmobar.App.Timer
--- Copyright: (c) 2019, 2020 Tomáš Janoušek
+-- Module: Xmobar.Run.Timer
+-- Copyright: (c) 2019, 2020, 2022 Tomáš Janoušek
-- License: BSD3-style (see LICENSE)
--
-- Maintainer: Tomáš Janoušek <tomi@nomi.cz>
@@ -12,7 +12,7 @@
--
------------------------------------------------------------------------------
-module Xmobar.App.Timer
+module Xmobar.Run.Timer
( doEveryTenthSeconds
, tenthSeconds
, withTimer
diff --git a/xmobar.cabal b/xmobar.cabal
index d551fd0..0b87d18 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -110,6 +110,7 @@ library
Xmobar.Config.Types,
Xmobar.Config.Parse,
Xmobar.Run.Types,
+ Xmobar.Run.Timer,
Xmobar.Run.Template,
Xmobar.Run.Exec,
Xmobar.Run.Runnable
@@ -121,7 +122,6 @@ library
Xmobar.App.Main,
Xmobar.App.Opts,
Xmobar.App.Compile,
- Xmobar.App.Timer,
Xmobar.System.Utils,
Xmobar.System.StatFS,
Xmobar.System.Environment,
@@ -383,7 +383,7 @@ test-suite XmobarTest
Xmobar.Plugins.Monitors.CpuSpec
Xmobar.Plugins.Monitors.Common.Run
Xmobar.Run.Exec
- Xmobar.App.Timer
+ Xmobar.Run.Timer
Xmobar.System.Signal
if flag(with_alsa) || flag(all_extensions)