diff options
author | jao <jao@gnu.org> | 2018-12-08 03:15:55 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2018-12-08 03:15:55 +0000 |
commit | 108200581a0d3b898254bf278f959178587bd856 (patch) | |
tree | 3d5f3fc1bffda46b5ddb5b4201f1feada2c65c13 /src/Xmobar/App/Compile.hs | |
parent | 52f1a0b5b40f8d44fa658e33d5b535c32463fadf (diff) | |
download | xmobar-108200581a0d3b898254bf278f959178587bd856.tar.gz xmobar-108200581a0d3b898254bf278f959178587bd856.tar.bz2 |
Compiling only .[l]hs[c] files
Should take care of issue #371
Diffstat (limited to 'src/Xmobar/App/Compile.hs')
-rw-r--r-- | src/Xmobar/App/Compile.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xmobar/App/Compile.hs b/src/Xmobar/App/Compile.hs index 6c136dc..0a763b4 100644 --- a/src/Xmobar/App/Compile.hs +++ b/src/Xmobar/App/Compile.hs @@ -17,7 +17,7 @@ ------------------------------------------------------------------------------ -module Xmobar.App.Compile(recompile, xmessage) where +module Xmobar.App.Compile(recompile, trace, xmessage) where import Control.Monad.IO.Class import Control.Monad.Fix (fix) @@ -70,12 +70,12 @@ shouldRecompile verb src bin lib = do binT <- getModTime bin if any (binT <) (srcT : libTs) then do - trace verb "Xmobar doing recompile because some files have changed." + trace verb "Xmobar recompiling because some files have changed." return True else do trace verb $ "Xmobar skipping recompile because it is not forced " ++ "(e.g. via --recompile), and not any *.hs / *.lhs / *.hsc" - ++ "files in lib/ have been changed." + ++ " files in lib/ have been changed." return False where isSource = flip elem [".hs",".lhs",".hsc"] . takeExtension allFiles t = do |