packages feed

cabal-cargs 1.6.0 → 1.7.0

raw patch · 58 files changed

+17/−12 lines, 58 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG view
@@ -1,3 +1,7 @@+1.7.0+-----+* Respect the '--relative' option for Root_Dir field+ 1.6.0 ----- * Support Cabal 3.14
cabal-cargs.cabal view
@@ -1,6 +1,6 @@ cabal-version:      >=1.10.0 name:               cabal-cargs-version:            1.6.0+version:            1.7.0 license:            BSD3 license-file:       LICENSE maintainer:         daniel.trstenjak@gmail.com
lib/CabalCargs/CompilerArgs.hs view
@@ -15,7 +15,7 @@ import Data.List (nub, foldl') import Data.Maybe (maybeToList, listToMaybe) import Control.Lens-import System.FilePath (takeDirectory)+import System.FilePath (takeDirectory, pathSeparator) import qualified Filesystem.Path.CurrentOS as FP  #if __GLASGOW_HASKELL__ < 710@@ -92,6 +92,7 @@                  & autogenHsSourceDirsL     %~ map stripCabalDir                  & autogenIncludeDirsL      %~ map stripCabalDir                  & packageDBL . _Just       %~ stripCabalDir+                 & rootDirL . _Just         .~ ("." ++ [pathSeparator])                  & hdevtoolsSocketL . _Just %~ stripCabalDir           | otherwise
tests/Main.hs view
@@ -27,7 +27,7 @@ testsWithBaseDir :: FilePath -> T.TestTree testsWithBaseDir dir = T.testGroup dir    [ test dir "FindCabalFile" $ defaultArgs { sourceFile = libDir }-   , test dir "FromCabalFile" $ defaultArgs { cabalFile = cabalFile } +   , test dir "FromCabalFile" $ defaultArgs { cabalFile = cabalFile }    , test dir "FromLibSrcFile" $ defaultArgs { sourceFile = libSrcFile }    , test dir "FromExeSrcFile" $ defaultArgs { sourceFile = exeSrcFile } @@ -81,7 +81,7 @@                  hPutStrLn stderr ("cabal-cargs: " ++ error)                Right cargs_ -> do-                 writeFile outputFile (intercalate " " $ Fmt.format formatting cargs_)+                 writeFile outputFile $ (intercalate " " $ Fmt.format formatting cargs_) ++ "\n"        diff ref new = ["diff", "-u", ref, new]       goldenFile   = "tests" </> "goldenFiles" </> dir </> testName <.> "txt"
tests/goldenFiles/withSandbox/AllOfExe.txt view
tests/goldenFiles/withSandbox/AllOfLib.txt view
tests/goldenFiles/withSandbox/AllOfTest.txt view
tests/goldenFiles/withSandbox/AllSections.txt view
tests/goldenFiles/withSandbox/DisableFlag.txt view
tests/goldenFiles/withSandbox/EnableAndDisableFlag.txt view
tests/goldenFiles/withSandbox/EnableFlag.txt view
tests/goldenFiles/withSandbox/FindCabalFile.txt view
tests/goldenFiles/withSandbox/FindCabalFileHdevtools.txt view
tests/goldenFiles/withSandbox/FindCabalFilePure.txt view
@@ -1,1 +1,1 @@-lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d /home/dan/projekte/cabal-cargs/tests/inputFiles/withSandbox dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock+lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d ./ dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withSandbox/FromCabalFile.txt view
tests/goldenFiles/withSandbox/FromCabalFileHdevtools.txt view
tests/goldenFiles/withSandbox/FromCabalFilePure.txt view
@@ -1,1 +1,1 @@-lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d /home/dan/projekte/cabal-cargs/tests/inputFiles/withSandbox dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock+lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d ./ dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withSandbox/FromExeSrcFile.txt view
tests/goldenFiles/withSandbox/FromExeSrcFileHdevtools.txt view
tests/goldenFiles/withSandbox/FromExeSrcFilePure.txt view
@@ -1,1 +1,1 @@-exe -W -DEXE base cabal-cargs .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d /home/dan/projekte/cabal-cargs/tests/inputFiles/withSandbox dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock+exe -W -DEXE base cabal-cargs .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d ./ dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withSandbox/FromExeSrcPure.txt view
tests/goldenFiles/withSandbox/FromLibSrcFile.txt view
tests/goldenFiles/withSandbox/FromLibSrcFileHdevtools.txt view
tests/goldenFiles/withSandbox/FromLibSrcPure.txt view
@@ -1,1 +1,1 @@-lib -W -DLIB base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d /home/dan/projekte/cabal-cargs/tests/inputFiles/withSandbox dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock+lib -W -DLIB base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal .cabal-sandbox/x86_64-linux-ghc-7.6.2-packages.conf.d ./ dist/dist-sandbox-6d1acfa0/build/autogen dist/dist-sandbox-6d1acfa0/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withSandbox/IgnoreBuildDepends.txt view
tests/goldenFiles/withSandbox/OnlyGhcOptionsOfExe.txt view
tests/goldenFiles/withSandbox/OnlyGhcOptionsOfLib.txt view
tests/goldenFiles/withSandbox/OnlyGhcOptionsOfTest.txt view
tests/goldenFiles/withSandbox/OnlyPureSrcDirsOfExe.txt view
tests/goldenFiles/withSandbox/OnlyPureSrcDirsOfLib.txt view
tests/goldenFiles/withSandbox/OnlyPureSrcDirsOfTest.txt view
tests/goldenFiles/withoutSandbox/AllOfExe.txt view
tests/goldenFiles/withoutSandbox/AllOfLib.txt view
tests/goldenFiles/withoutSandbox/AllOfTest.txt view
tests/goldenFiles/withoutSandbox/AllSections.txt view
tests/goldenFiles/withoutSandbox/DisableFlag.txt view
tests/goldenFiles/withoutSandbox/EnableAndDisableFlag.txt view
tests/goldenFiles/withoutSandbox/EnableFlag.txt view
tests/goldenFiles/withoutSandbox/FindCabalFile.txt view
tests/goldenFiles/withoutSandbox/FindCabalFileHdevtools.txt view
tests/goldenFiles/withoutSandbox/FindCabalFilePure.txt view
@@ -1,1 +1,1 @@-lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath /home/dan/projekte/cabal-cargs/tests/inputFiles/withoutSandbox dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock+lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath ./ dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withoutSandbox/FromCabalFile.txt view
tests/goldenFiles/withoutSandbox/FromCabalFileHdevtools.txt view
tests/goldenFiles/withoutSandbox/FromCabalFilePure.txt view
@@ -1,1 +1,1 @@-lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath /home/dan/projekte/cabal-cargs/tests/inputFiles/withoutSandbox dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock+lib exe tests -W -DLIB -DEXE base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal cabal-cargs tasty tasty-golden filepath ./ dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withoutSandbox/FromExeSrcFile.txt view
tests/goldenFiles/withoutSandbox/FromExeSrcFileHdevtools.txt view
tests/goldenFiles/withoutSandbox/FromExeSrcFilePure.txt view
@@ -1,1 +1,1 @@-exe -W -DEXE base cabal-cargs /home/dan/projekte/cabal-cargs/tests/inputFiles/withoutSandbox dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock+exe -W -DEXE base cabal-cargs ./ dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withoutSandbox/FromExeSrcPure.txt view
tests/goldenFiles/withoutSandbox/FromLibSrcFile.txt view
tests/goldenFiles/withoutSandbox/FromLibSrcFileHdevtools.txt view
tests/goldenFiles/withoutSandbox/FromLibSrcPure.txt view
@@ -1,1 +1,1 @@-lib -W -DLIB base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal /home/dan/projekte/cabal-cargs/tests/inputFiles/withoutSandbox dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock+lib -W -DLIB base cmdargs lens directory strict transformers either text system-filepath system-fileio Cabal ./ dist/build/autogen dist/build/autogen cabal_macros.h .hdevtools.sock
tests/goldenFiles/withoutSandbox/IgnoreBuildDepends.txt view
tests/goldenFiles/withoutSandbox/OnlyGhcOptionsOfExe.txt view
tests/goldenFiles/withoutSandbox/OnlyGhcOptionsOfLib.txt view
tests/goldenFiles/withoutSandbox/OnlyGhcOptionsOfTest.txt view
tests/goldenFiles/withoutSandbox/OnlyPureSrcDirsOfExe.txt view
tests/goldenFiles/withoutSandbox/OnlyPureSrcDirsOfLib.txt view
tests/goldenFiles/withoutSandbox/OnlyPureSrcDirsOfTest.txt view