diff options
author | jao <jao@gnu.org> | 2018-11-25 03:49:15 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2018-11-25 03:49:15 +0000 |
commit | 3852d6b5e354b9b03b30f04803a87b2224aeb85c (patch) | |
tree | 88213d8fd2e2c5454e3a9ba696ef644c16b8f71b /src/lib/Xmobar | |
parent | 0691071716e6cfa6040044be0ca782771fe6104c (diff) | |
download | xmobar-3852d6b5e354b9b03b30f04803a87b2224aeb85c.tar.gz xmobar-3852d6b5e354b9b03b30f04803a87b2224aeb85c.tar.bz2 |
Xmobar.System.Environment
Diffstat (limited to 'src/lib/Xmobar')
-rw-r--r-- | src/lib/Xmobar/Plugins/BufferedPipeReader.hs | 4 | ||||
-rw-r--r-- | src/lib/Xmobar/Plugins/MarqueePipeReader.hs | 2 | ||||
-rw-r--r-- | src/lib/Xmobar/Plugins/PipeReader.hs | 2 | ||||
-rw-r--r-- | src/lib/Xmobar/System/Environment.hs (renamed from src/lib/Xmobar/Environment.hs) | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Xmobar/Plugins/BufferedPipeReader.hs b/src/lib/Xmobar/Plugins/BufferedPipeReader.hs index ce6a783..13f64ac 100644 --- a/src/lib/Xmobar/Plugins/BufferedPipeReader.hs +++ b/src/lib/Xmobar/Plugins/BufferedPipeReader.hs @@ -20,10 +20,10 @@ import Control.Concurrent.STM import System.IO import System.IO.Unsafe(unsafePerformIO) -import Xmobar.Environment import Xmobar.Plugins import Xmobar.Utils(hGetLineSafe) import Xmobar.System.Signal +import Xmobar.System.Environment data BufferedPipeReader = BufferedPipeReader String [(Int, Bool, String)] deriving (Read, Show) @@ -45,7 +45,7 @@ instance Exec BufferedPipeReader where writer chan str rst where - initV :: IO ( TChan (Int, Bool, String), TVar (Maybe String), TVar Bool ) + initV :: IO (TChan (Int, Bool, String), TVar (Maybe String), TVar Bool) initV = atomically $ do tc <- newTChan ts <- newTVar Nothing diff --git a/src/lib/Xmobar/Plugins/MarqueePipeReader.hs b/src/lib/Xmobar/Plugins/MarqueePipeReader.hs index ad1ae40..48f5355 100644 --- a/src/lib/Xmobar/Plugins/MarqueePipeReader.hs +++ b/src/lib/Xmobar/Plugins/MarqueePipeReader.hs @@ -15,7 +15,7 @@ module Xmobar.Plugins.MarqueePipeReader where import System.IO (openFile, IOMode(ReadWriteMode), Handle) -import Xmobar.Environment +import Xmobar.System.Environment import Xmobar.Plugins (tenthSeconds, Exec(alias, start)) import Xmobar.Utils(hGetLineSafe) import System.Posix.Files (getFileStatus, isNamedPipe) diff --git a/src/lib/Xmobar/Plugins/PipeReader.hs b/src/lib/Xmobar/Plugins/PipeReader.hs index 593a4a7..5e22408 100644 --- a/src/lib/Xmobar/Plugins/PipeReader.hs +++ b/src/lib/Xmobar/Plugins/PipeReader.hs @@ -16,8 +16,8 @@ module Xmobar.Plugins.PipeReader where import System.IO import Xmobar.Plugins(Exec(..)) -import Xmobar.Environment(expandEnv) import Xmobar.Utils(hGetLineSafe) +import Xmobar.System.Environment(expandEnv) import System.Posix.Files import Control.Concurrent(threadDelay) import Control.Exception diff --git a/src/lib/Xmobar/Environment.hs b/src/lib/Xmobar/System/Environment.hs index 8a9223a..86197db 100644 --- a/src/lib/Xmobar/Environment.hs +++ b/src/lib/Xmobar/System/Environment.hs @@ -11,10 +11,10 @@ -- A function to expand environment variables in strings -- ----------------------------------------------------------------------------- -module Xmobar.Environment(expandEnv) where +module Xmobar.System.Environment(expandEnv) where import Control.Applicative ((<$>)) -import Data.Maybe (fromMaybe) +import Data.Maybe (fromMaybe) import System.Environment (lookupEnv) expandEnv :: String -> IO String |