ats-pkg 2.6.1.0 → 2.6.1.1
raw patch · 5 files changed
+12/−7 lines, 5 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Language.ATS.Package: checkPkg :: FilePath -> Bool -> IO ATSDependency
+ Language.ATS.Package: checkPkg :: FilePath -> Bool -> IO ATSPackageSet
Files
- app/Main.hs +1/−1
- ats-pkg.cabal +1/−1
- man/atspkg.1 +1/−1
- src/Language/ATS/Package/Build/Cabal.hs +6/−1
- src/Language/ATS/Package/Dhall.hs +3/−3
app/Main.hs view
@@ -62,7 +62,7 @@ <> command "upgrade" (info (pure Upgrade) (progDesc "Upgrade to the latest version of atspkg")) <> command "valgrind" (info valgrind (progDesc "Run generated binaries through valgrind")) <> command "run" (info run' (progDesc "Run generated binaries"))- <> command "check" (info check' (progDesc "Check pkg.dhall file to ensure it is well-typed."))+ <> command "check" (info check' (progDesc "Audit a package set to ensure it is well-typed.")) <> command "list" (info (pure List) (progDesc "List available packages")) )
ats-pkg.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: ats-pkg-version: 2.6.1.0+version: 2.6.1.1 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale
man/atspkg.1 view
@@ -41,7 +41,7 @@ .PP \f[B]run\f[] \- Run the generated binary .PP-\f[B]check\f[] \- Check a pkg.dhall file to make sure it is well\-typed.+\f[B]check\f[] \- Check a package set to make sure it is well\-typed. .PP \f[B]list\f[] \- List all available packages in current package set. .SH OPTIONS
src/Language/ATS/Package/Build/Cabal.hs view
@@ -34,6 +34,11 @@ modifyLibrary libDir lib = let old = libBuildInfo lib in lib { libBuildInfo = modifyBuildInfo libDir old } +writeDummyFile :: IO ()+writeDummyFile =+ writeFile "dist-newstyle/lib" ""+ cabalHooks :: UserHooks cabalHooks = let defConf = confHook simpleUserHooks- in simpleUserHooks { confHook = configureCabal .* defConf }+ in simpleUserHooks { preConf = \_ _ -> writeDummyFile >> pure emptyHookedBuildInfo+ , confHook = configureCabal .* defConf }
src/Language/ATS/Package/Dhall.hs view
@@ -1,13 +1,13 @@ module Language.ATS.Package.Dhall ( checkPkg ) where -import Language.ATS.Package.Type+import Language.ATS.Package.PackageSet import Quaalude checkPkg :: FilePath -- ^ Path to @pkg.dhall@ or similar. -> Bool -- ^ Whether to print detailed error messages.- -> IO ATSDependency+ -> IO ATSPackageSet checkPkg path d = do x <- input auto (pack ('.' : '/' : path)) let f = bool id detailed d- f (pure (x :: ATSDependency))+ f (pure (x :: ATSPackageSet))