Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions to create/extract archives.
Synopsis
- data Compression
- = NoCompression
- | GZip
- | Zip
- create :: Compression -> PathFile b0 -> PathDir b1 -> IO ()
- create' :: Compression -> PathFile b0 -> PathDir b1 -> [FilePath] -> IO ()
- extract :: PathDir b0 -> PathFile b1 -> IO ()
Documentation
data Compression Source #
The compression algorithm to use when creating an archive.
Instances
Show Compression Source # | |
Defined in Codec.Archive.ZTar showsPrec :: Int -> Compression -> ShowS # show :: Compression -> String # showList :: [Compression] -> ShowS # |
:: Compression | |
-> PathFile b0 | archive file to create |
-> PathDir b1 | directory to archive |
-> IO () |
Create a new archive from the given directory using the given compression algorithm.
:: Compression | |
-> PathFile b0 | archive file to create |
-> PathDir b1 | base directory |
-> [FilePath] | files and paths to compress, relative to base directory |
-> IO () |
Create a new archive from the given paths using the given compression algorithm.