cabal-helper 0.7.0.1 → 0.7.1.0
raw patch · 2 files changed
+11/−11 lines, 2 filesdep ~basedep ~bytestringdep ~directorynew-component:exe:cabal-helper-wrapper-v0.7PVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, bytestring, directory, filepath, mtl, process, template-haskell, temporary, transformers
API changes (from Hackage documentation)
Files
- Distribution/Helper.hs +9/−9
- cabal-helper.cabal +2/−2
Distribution/Helper.hs view
@@ -95,7 +95,7 @@ import GHC.Generics import Prelude -import Paths_cabal_helper (getLibexecDir)+import Paths_cabal_helper (getLibexecDir, version) import CabalHelper.Types hiding (Options(..)) import CabalHelper.Sandbox @@ -295,7 +295,7 @@ , "--with-ghc-pkg=" ++ ghcPkgProgram qePrograms , "--with-cabal=" ++ cabalProgram qePrograms ]- exe <- findLibexecExe "cabal-helper-wrapper"+ exe <- findLibexecExe let args' = progArgs ++ qeProjectDir:qeDistDir:args out <- qeReadProcess exe args' "" (Right <$> evaluate out) `E.catch` \(SomeException _) ->@@ -353,7 +353,7 @@ -> FilePath -> m () prepare readProc projdir distdir = liftIO $ do- exe <- findLibexecExe "cabal-helper-wrapper"+ exe <- findLibexecExe void $ readProc exe [projdir, distdir] "" {-# DEPRECATED prepare@@ -374,7 +374,7 @@ -- ^ Path to the @dist/@ directory -> m () writeAutogenFiles readProc projdir distdir = liftIO $ do- exe <- findLibexecExe "cabal-helper-wrapper"+ exe <- findLibexecExe void $ readProc exe [projdir, distdir, "write-autogen-files"] "" {-# DEPRECATED writeAutogenFiles@@ -398,7 +398,7 @@ buildPlatform :: (FilePath -> [String] -> String -> IO String) -> IO String buildPlatform readProc = do- exe <- findLibexecExe "cabal-helper-wrapper"+ exe <- findLibexecExe CabalHelper.Sandbox.dropWhileEnd isSpace <$> readProc exe ["print-build-platform"] "" -- | This exception is thrown by all 'runQuery' functions if the internal@@ -412,10 +412,11 @@ show (LibexecNotFoundError exe dir) = libexecNotFoundError exe dir "https://github.com/DanielG/cabal-helper/issues" -findLibexecExe :: String -> IO FilePath-findLibexecExe "cabal-helper-wrapper" = do+findLibexecExe :: IO FilePath+findLibexecExe = do libexecdir <- getLibexecDir- let exeName = "cabal-helper-wrapper"+ let Version (mj:mi:_) _ = version+ exeName = "cabal-helper-wrapper-v" ++ show mj ++ "." ++ show mi exe = libexecdir </> exeName <.> exeExtension' exists <- doesFileExist exe@@ -429,7 +430,6 @@ error $ throw $ LibexecNotFoundError exeName libexecdir Just dir -> return $ dir </> "dist" </> "build" </> exeName </> exeName-findLibexecExe exe = error $ "findLibexecExe: Unknown executable: " ++ exe tryFindCabalHelperTreeLibexecDir :: IO (Maybe FilePath) tryFindCabalHelperTreeLibexecDir = do
cabal-helper.cabal view
@@ -1,5 +1,5 @@ name: cabal-helper-version: 0.7.0.1+version: 0.7.1.0 synopsis: Simple interface to some of Cabal's configuration state used by ghc-mod description: @cabal-helper@ provides a library which wraps the internal use of an@@ -57,7 +57,7 @@ , process , ghc-prim -Executable cabal-helper-wrapper+Executable cabal-helper-wrapper-v0.7 Default-Language: Haskell2010 Other-Extensions: TemplateHaskell Main-Is: CabalHelper/Wrapper.hs