diff options
author | Jochen Keil <jochen.keil@gmail.com> | 2012-08-09 09:43:49 +0200 |
---|---|---|
committer | Jochen Keil <jochen.keil@gmail.com> | 2012-08-09 10:47:09 +0200 |
commit | 58427c76c892334522dfb28ea2d2a858469fc65a (patch) | |
tree | 4ed2294e0a0d7254fbeee5bbd7c53e35f675cd8c /src/Plugins/BufferedPipeReader.hs | |
parent | cc77b5a7bc8309f694fd0aed4110b92f16316c0b (diff) | |
download | xmobar-58427c76c892334522dfb28ea2d2a858469fc65a.tar.gz xmobar-58427c76c892334522dfb28ea2d2a858469fc65a.tar.bz2 |
Cosmetic surgery
Realign methods, remove unnecessary imports and remove clutter
Diffstat (limited to 'src/Plugins/BufferedPipeReader.hs')
-rw-r--r-- | src/Plugins/BufferedPipeReader.hs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Plugins/BufferedPipeReader.hs b/src/Plugins/BufferedPipeReader.hs index 1fb9dcb..e232916 100644 --- a/src/Plugins/BufferedPipeReader.hs +++ b/src/Plugins/BufferedPipeReader.hs @@ -18,18 +18,12 @@ import Control.Monad(forM_, when) import Control.Concurrent import Control.Concurrent.STM import System.IO --- import System.IO.Unsafe(unsafePerformIO) import Plugins data BufferedPipeReader = BufferedPipeReader String [(Int, String)] deriving (Read, Show) --- pipeState :: MVar String --- pipeState = unsafePerformIO $ newMVar "" - --- pipe :: (String -> IO ()) -> Handle -> IO () --- pipe cb h = hGetLineSafe h >>= cb instance Exec BufferedPipeReader where alias ( BufferedPipeReader a _ ) = a |