Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- entriesToFile :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFileZip :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFile7Zip :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFileCpio :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFileXar :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFileShar :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToFileGeneral :: Foldable t => (ArchivePtr -> IO ArchiveResult) -> FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()
- entriesToBS :: Foldable t => t (Entry FilePath ByteString) -> ByteString
- entriesToBSGeneral :: Foldable t => (ArchivePtr -> IO ArchiveResult) -> t (Entry FilePath ByteString) -> ArchiveM ByteString
- entriesToBSzip :: Foldable t => t (Entry FilePath ByteString) -> ByteString
- entriesToBS7zip :: Foldable t => t (Entry FilePath ByteString) -> ByteString
- filePacker :: Traversable t => (FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()) -> FilePath -> t FilePath -> ArchiveM ()
- packEntries :: Foldable t => ArchivePtr -> t (Entry FilePath ByteString) -> ArchiveM ()
- noFail :: ArchiveM a -> IO a
- packToFile :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- packToFileZip :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- packToFile7Zip :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- packToFileCpio :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- packToFileXar :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- packToFileShar :: Traversable t => FilePath -> t FilePath -> ArchiveM ()
- archiveEntryAdd :: ArchivePtr -> Entry FilePath ByteString -> ArchiveM ()
- contentAdd :: EntryContent FilePath ByteString -> ArchivePtr -> ArchiveEntryPtr -> ArchiveM ()
Documentation
entriesToFile :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a tar archive. This is more efficient than
BS.writeFile "file.tar" (entriesToBS entries)
Since: 1.0.0.0
entriesToFileZip :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a zip archive.
Since: 1.0.0.0
entriesToFile7Zip :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a .7z
archive.
Since: 1.0.0.0
entriesToFileCpio :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a .cpio
archive.
Since: 2.2.3.0
entriesToFileXar :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a .xar
archive.
Since: 2.2.4.0
entriesToFileShar :: Foldable t => FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
Write some entries to a file, creating a .shar
archive.
Since: 3.0.0.0
entriesToFileGeneral :: Foldable t => (ArchivePtr -> IO ArchiveResult) -> FilePath -> t (Entry FilePath ByteString) -> ArchiveM () Source #
entriesToBS :: Foldable t => t (Entry FilePath ByteString) -> ByteString Source #
Returns a ByteString
containing a tar archive with the Entry
s
Since: 1.0.0.0
entriesToBSGeneral :: Foldable t => (ArchivePtr -> IO ArchiveResult) -> t (Entry FilePath ByteString) -> ArchiveM ByteString Source #
Internal function to be used with archive_write_set_format_pax
etc.
entriesToBSzip :: Foldable t => t (Entry FilePath ByteString) -> ByteString Source #
Returns a ByteString
containing a zip archive with the Entry
s
Since: 1.0.0.0
entriesToBS7zip :: Foldable t => t (Entry FilePath ByteString) -> ByteString Source #
Returns a ByteString
containing a .7z
archive with the Entry
s
Since: 1.0.0.0
filePacker :: Traversable t => (FilePath -> t (Entry FilePath ByteString) -> ArchiveM ()) -> FilePath -> t FilePath -> ArchiveM () Source #
packEntries :: Foldable t => ArchivePtr -> t (Entry FilePath ByteString) -> ArchiveM () Source #
:: Traversable t | |
=> FilePath |
|
-> t FilePath | Files to include |
-> ArchiveM () |
Since: 2.0.0.0
packToFileZip :: Traversable t => FilePath -> t FilePath -> ArchiveM () Source #
Since: 2.0.0.0
packToFile7Zip :: Traversable t => FilePath -> t FilePath -> ArchiveM () Source #
Since: 2.0.0.0
packToFileCpio :: Traversable t => FilePath -> t FilePath -> ArchiveM () Source #
Since: 2.2.3.0
packToFileXar :: Traversable t => FilePath -> t FilePath -> ArchiveM () Source #
Since: 2.2.4.0
packToFileShar :: Traversable t => FilePath -> t FilePath -> ArchiveM () Source #
Since: 3.0.0.0
archiveEntryAdd :: ArchivePtr -> Entry FilePath ByteString -> ArchiveM () Source #
contentAdd :: EntryContent FilePath ByteString -> ArchivePtr -> ArchiveEntryPtr -> ArchiveM () Source #