arbtt 0.1.4 → 0.1.5
raw patch · 2 files changed
+4/−3 lines, 2 filesdep +setlocale
Dependencies added: setlocale
Files
- arbtt.cabal +2/−2
- src/capture-main.hs +2/−1
arbtt.cabal view
@@ -1,5 +1,5 @@ name: arbtt-version: 0.1.4+version: 0.1.5 license: GPL license-file: LICENSE category: Desktop@@ -41,7 +41,7 @@ main-is: stats-main.hs hs-source-dirs: src build-depends:- base == 4.*, parsec == 2.*, containers, pcre-light, tabular+ base == 4.*, parsec == 2.*, containers, pcre-light, tabular, setlocale other-modules: Data Categorize
src/capture-main.hs view
@@ -12,7 +12,7 @@ import System.Posix.IO import System.IO.Error import System.Exit-+import System.Locale.SetLocale -- | sampleRate in seconds sampleRate = 60 @@ -23,6 +23,7 @@ setLock fd (WriteLock, AbsoluteSeek, 0, 0) main = do+ setLocale LC_ALL (Just "") unless compiledWithXScreenSaver $ hPutStrLn stderr "arbtt [Warning]: X11 was compiled without support for XScreenSaver" dir <- getAppUserDataDirectory "arbtt"