summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorReto Habluetzel <rethab@rethab.ch>2012-09-15 18:54:13 +0200
committerReto Habluetzel <rethab@rethab.ch>2012-09-15 18:54:13 +0200
commite2407925093dfcc4e89dabeceb46429adda015b9 (patch)
tree68bdc6775c77c6a43d6cd9459980e2d9e3ad0f77 /src
parent1d666aecb6ca8f6822fda2434750e8ada6a09462 (diff)
downloadxmobar-e2407925093dfcc4e89dabeceb46429adda015b9.tar.gz
xmobar-e2407925093dfcc4e89dabeceb46429adda015b9.tar.bz2
removed PipeReader2 as funcionality was move to PipeReader
Diffstat (limited to 'src')
-rw-r--r--src/Plugins/PipeReader2.hs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Plugins/PipeReader2.hs b/src/Plugins/PipeReader2.hs
deleted file mode 100644
index 511f107..0000000
--- a/src/Plugins/PipeReader2.hs
+++ /dev/null
@@ -1,30 +0,0 @@
------------------------------------------------------------------------------
--- |
--- Module : Plugins.PipeReader2
--- Copyright : (c) Andrea Rossato
--- License : BSD-style (see LICENSE)
---
--- Maintainer : Jose A. Ortega Ruiz <jao@gnu.org>
--- Stability : unstable
--- Portability : unportable
---
--- A plugin for reading from named pipes. As opposed to PipeReader, this
--- plugin displays a default string when it starts.
---
------------------------------------------------------------------------------
-
-module Plugins.PipeReader2 where
-
-import System.IO
-import Plugins
-
-data PipeReader2 = PipeReader2 String String String
- deriving (Read, Show)
-
-instance Exec PipeReader2 where
- alias (PipeReader2 _ a _) = a
- start (PipeReader2 p _ def) cb = do
- h <- openFile p ReadWriteMode
- cb def
- forever (hGetLineSafe h >>= cb)
- where forever a = a >> forever a