hake 0.7 → 0.8
raw patch · 2 files changed
+6/−4 lines, 2 filesdep ~yjtoolsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: yjtools
API changes (from Hackage documentation)
Files
- Development/Hake/HiddenTools.hs +4/−2
- hake.cabal +2/−2
Development/Hake/HiddenTools.hs view
@@ -26,6 +26,7 @@ import System.Exit (ExitCode) import System.FilePath (takeFileName) import System.Process (runProcess, waitForProcess)+import System.Directory.Tools (doesNotExistOrOldThan) import Control.Monad (when) import Control.Monad.Tools (unlessM) import Data.List.Tools (defaultElem)@@ -50,8 +51,9 @@ $ flip mapM othrs $ apply2way (updateFile commentPair) id $ (hakeDir ++) . takeFileName- hakefileUD <- updateFile commentPair src exeSrc- when (othrsUD || hakefileUD) $ ghcMake exe hakeDir >> return ()+ hakefileUD <- updateFile commentPair src exeSrc+ notUpdated <- doesNotExistOrOldThan exePath exeSrc+ when (othrsUD || hakefileUD || notUpdated) $ ghcMake exe hakeDir >> return () let args_ = applyWhen (othrsUD || hakefileUD) (hakefileUpdateOption:) $ defaultElem defaultTrgtStr args runProcess exePath args_ Nothing Nothing Nothing Nothing Nothing
hake.cabal view
@@ -1,5 +1,5 @@ Name: hake-Version: 0.7+Version: 0.8 License: GPL License-file: LICENSE Author: Yoshikuni Jujo@@ -69,6 +69,6 @@ Executable hake GHC-Options: -Wall -- CPP-Options: -DDEBUG- Build-Depends: directory, process, yjtools >= 0.5, regexpr >= 0.3+ Build-Depends: directory, process, yjtools >= 0.6, regexpr >= 0.3 Other-Modules: Development.Hake.HiddenTools Main-Is: Main.hs