shake-bindist 1.0.0.0 → 1.0.1.0
raw patch · 4 files changed
+26/−8 lines, 4 filesdep +lzmaPVP ok
version bump matches the API change (PVP)
Dependencies added: lzma
API changes (from Hackage documentation)
+ Archive: instance GHC.Exception.Type.Exception {Archive.Error}
+ Development.Shake.BinDist: tarXz :: [FilePath] -> FilePattern -> Rules ()
+ Development.Shake.BinDist: tarXzA :: [FilePath] -> FilePath -> Action ()
Files
- CHANGELOG.md +4/−0
- README.md +4/−6
- shake-bindist.cabal +3/−2
- src/Development/Shake/BinDist.hs +15/−0
CHANGELOG.md view
@@ -1,5 +1,9 @@ # shake-bindist +## 1.0.1.0++ * Add `tarXz` and `tarXzA`+ ## 1.0.0.0 * Convert to package signature
README.md view
@@ -1,12 +1,10 @@ # shake-bindist -[](https://hackage.haskell.org/package/shake-bindist)- Like [shake-pack](https://hackage.haskell.org/package/shake-pack-0.2.0). ## Use -This package has two backends; by default it uses-[tar](http://hackage.haskell.org/package/tar) but if the `pure` flag is-disabled it will be built with the-[libarchive](http://hackage.haskell.org/package/libarchive) backend.+This package requires a package implementing+[archive-sig](http://hackage.haskell.org/package/archive-sig) such as+[archive-tar](http://hackage.haskell.org/package/archive-tar) or+[archive-libarchive](http://hackage.haskell.org/package/archive-libarchive).
shake-bindist.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: shake-bindist-version: 1.0.0.0+version: 1.0.1.0 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2020 Vanessa McHale@@ -36,7 +36,8 @@ bytestring -any, archive-sig >=0.2.0.0, bz2 >=0.1.1.0,- zlib+ zlib,+ lzma if flag(development) ghc-options: -Werror
src/Development/Shake/BinDist.hs view
@@ -3,17 +3,20 @@ , tarZstd , tarBz2 , tarGz+ , tarXz -- * Actions , tarLzipA , tarZstdA , tarBz2A , tarGzA+ , tarXzA ) where import Archive.Compression (packFromFilesAndCompress) import qualified Codec.Compression.BZip as Bz2 import qualified Codec.Compression.GZip as GZip import qualified Codec.Compression.Zstd.Lazy as Zstd+import qualified Codec.Compression.Lzma as Lzma import qualified Codec.Lzip as Lzip import qualified Data.ByteString.Lazy as BSL import Development.Shake hiding (action)@@ -56,6 +59,12 @@ -> Rules () tarBz2 = mkRule tarBz2A +-- | @since 1.0.1.0+tarXz :: [FilePath] -- ^ Files to pack up+ -> FilePattern -- ^ Resultant tarball+ -> Rules ()+tarXz = mkRule tarBz2A+ tarLzipA :: [FilePath] -- ^ Files to pack up -> FilePath -- ^ File name of resultant tarball -> Action ()@@ -75,3 +84,9 @@ -> FilePath -- ^ File name of resultant tarball -> Action () tarBz2A = tarGenericA "tar-bz2" Bz2.compress++-- | @since 1.0.1.0+tarXzA :: [FilePath] -- ^ Files to pack up+ -> FilePath -- ^ File name of resultant tarball+ -> Action ()+tarXzA = tarGenericA "lzma" Lzma.compress