dyre 0.5 → 0.6
raw patch · 2 files changed
+13/−8 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Config/Dyre/Options.hs +12/−7
- dyre.cabal +1/−1
Config/Dyre/Options.hs view
@@ -92,13 +92,18 @@ masterPath <- getMasterBinary stateFile <- getStatePersist debugMode <- getDebug- return . filter (not . null) $ fromMaybe [] otherArgs ++- [ if debugMode then "--dyre-debug" else ""- , case stateFile of- Nothing -> ""- Just sf -> "--dyre-state-persist=" ++ sf- , "--dyre-master-binary=" ++ (fromJust masterPath)- ]+ mainArgs <- case otherArgs of+ Nothing -> getArgs+ Just oa -> return oa+ -- Combine the other arguments with the Dyre-specific ones+ let args = filter (not . null) $+ mainArgs ++ [ if debugMode then "--dyre-debug" else ""+ , case stateFile of+ Nothing -> ""+ Just sf -> "--dyre-state-persist=" ++ sf+ , "--dyre-master-binary=" ++ (fromJust masterPath)+ ]+ return args -- | Look for the given flag in the argument array, and store -- its value under the given name if it exists.
dyre.cabal view
@@ -1,5 +1,5 @@ name: dyre-version: 0.5+version: 0.6 category: Development, Configuration synopsis: Dynamic reconfiguration in Haskell