packages feed

dyre 0.7.2 → 0.7.3

raw patch · 4 files changed

+7/−3 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Config.Dyre: forceRecomp :: Params cfgType -> Bool
+ Config.Dyre.Params: forceRecomp :: Params cfgType -> Bool
- Config.Dyre: Params :: String -> Bool -> Maybe (IO FilePath) -> Maybe (IO FilePath) -> (cfgType -> IO ()) -> (cfgType -> String -> cfgType) -> [String] -> [String] -> (String -> IO ()) -> Params cfgType
+ Config.Dyre: Params :: String -> Bool -> Maybe (IO FilePath) -> Maybe (IO FilePath) -> (cfgType -> IO ()) -> (cfgType -> String -> cfgType) -> [String] -> [String] -> Bool -> (String -> IO ()) -> Params cfgType
- Config.Dyre.Params: Params :: String -> Bool -> Maybe (IO FilePath) -> Maybe (IO FilePath) -> (cfgType -> IO ()) -> (cfgType -> String -> cfgType) -> [String] -> [String] -> (String -> IO ()) -> Params cfgType
+ Config.Dyre.Params: Params :: String -> Bool -> Maybe (IO FilePath) -> Maybe (IO FilePath) -> (cfgType -> IO ()) -> (cfgType -> String -> cfgType) -> [String] -> [String] -> Bool -> (String -> IO ()) -> Params cfgType

Files

Config/Dyre.hs view
@@ -111,6 +111,7 @@     , showError    = undefined     , hidePackages = []     , ghcOpts      = []+    , forceRecomp  = True     , statusOut    = hPutStrLn stderr     } 
Config/Dyre/Compile.hs view
@@ -49,12 +49,13 @@  -- | Assemble the arguments to GHC so everything compiles right. makeFlags :: Params cfgType -> FilePath -> FilePath -> FilePath -> IO [String]-makeFlags Params{ghcOpts = flags, hidePackages = hides}+makeFlags Params{ghcOpts = flags, hidePackages = hides, forceRecomp = force}           cfgFile tmpFile cacheDir = do     currentDir <- getCurrentDirectory-    return . concat $ [ ["-v0", "-fforce-recomp", "-i" ++ currentDir]+    return . concat $ [ ["-v0", "-i" ++ currentDir]                       , ["-outputdir", cacheDir]                       , prefix "-hide-package" hides, flags                       , ["--make", cfgFile, "-o", tmpFile]+                      , if force then ["-fforce-recomp"] else []                       ]   where prefix y xs = concat . map (\x -> [y,x]) $ xs
Config/Dyre/Params.hs view
@@ -36,6 +36,8 @@     -- ^ Packages that need to be hidden during compilation     , ghcOpts      :: [String]     -- ^ Miscellaneous GHC compilation settings go here+    , forceRecomp  :: Bool+    -- ^ Should GHC be given the -fforce-recomp flag?     , statusOut    :: String -> IO ()     -- ^ A status output function. Will be called with messages     --   when Dyre recompiles or launches anything. A good value
dyre.cabal view
@@ -1,5 +1,5 @@ name:          dyre-version:       0.7.2+version:       0.7.3 category:      Development, Configuration synopsis:      Dynamic reconfiguration in Haskell