ztail 1.0.1 → 1.0.2
raw patch · 3 files changed
+11/−6 lines, 3 filesdep ~hinotify
Dependency ranges changed: hinotify
Files
- Display.hs +1/−1
- TailHandle.hs +2/−2
- ztail.cabal +8/−3
Display.hs view
@@ -87,7 +87,7 @@ (x, r) = break colorSep s errMsg :: String -> IO ()-errMsg m = putStr displayResetColor >> hPutStrLn stderr m+errMsg m = hPutStrLn stderr (displayResetColor ++ m) output :: TermColor -> String -> IO () output c m = putStrLn (displayColor (colorReset ++ c) ++ m)
TailHandle.hs view
@@ -8,7 +8,7 @@ import System.Posix.Files import System.Posix.IO import System.IO.Error-import qualified Data.Maybe+import Data.Maybe (fromJust) import GHC.IO.Handle (SeekMode(AbsoluteSeek)) import Control.Concurrent import qualified Control.Exception@@ -68,7 +68,7 @@ } #ifdef INOTIFY where- rm_watch = INotify.removeWatch (Data.Maybe.fromJust (trINotify (thRuntime th)))+ rm_watch = INotify.removeWatch #endif seekTail :: FileOffset -> TailHandle -> IO TailHandle
ztail.cabal view
@@ -1,5 +1,5 @@ Name: ztail-Version: 1.0.1+Version: 1.0.2 Author: Dylan Simon Maintainer: dylan@dylex.net License: BSD3@@ -8,16 +8,21 @@ Category: System,Console Build-Type: Simple Cabal-Version: >= 1.6-tested-with: GHC == 6.8.2, GHC == 6.10.1+tested-with: GHC == 6.12.3 extra-source-files: README +Source-Repository head+ Type: darcs+ Location: http://dylex.net/src/ztail+ Flag INotify Description: Enable inotify support+ Default: True Executable ztail Main-is: Main.hs Other-Modules: Util, Display, TailTypes, TailHandle, Tail Build-Depends: base == 4.*, regex-compat, unix, time, old-locale, process, array if flag(inotify)- Build-Depends: hinotify+ Build-Depends: hinotify == 0.3.2 CPP-Options: -DINOTIFY