Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
encodeLongNames :: GenEntry FilePath FilePath -> [Entry] Source #
Translate high-level entries with POSIX FilePath
s for files and symlinks
into entries suitable for serialization by emitting additional
OtherEntryType
'K'
and OtherEntryType
'L'
nodes.
Input FilePath
s must be POSIX file names, not native ones.
Since: 0.6.0.0
decodeLongNames :: Entries e -> GenEntries FilePath FilePath (Either e DecodeLongNamesError) Source #
Translate low-level entries (usually freshly deserialized) into
high-level entries with POSIX FilePath
s for files and symlinks
by parsing and eliminating
OtherEntryType
'K'
and OtherEntryType
'L'
nodes.
Resolved FilePath
s are still POSIX file names, not native ones.
Since: 0.6.0.0
data DecodeLongNamesError Source #
Errors raised by decodeLongNames
.
Since: 0.6.0.0
TwoTypeKEntries | Two adjacent |
TwoTypeLEntries | Two adjacent |
NoLinkEntryAfterTypeKEntry |
|
Instances
Exception DecodeLongNamesError Source # | |
Show DecodeLongNamesError Source # | |
Defined in Codec.Archive.Tar.LongNames showsPrec :: Int -> DecodeLongNamesError -> ShowS # show :: DecodeLongNamesError -> String # showList :: [DecodeLongNamesError] -> ShowS # | |
Eq DecodeLongNamesError Source # | |
Defined in Codec.Archive.Tar.LongNames (==) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # (/=) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # | |
Ord DecodeLongNamesError Source # | |
Defined in Codec.Archive.Tar.LongNames compare :: DecodeLongNamesError -> DecodeLongNamesError -> Ordering # (<) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # (<=) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # (>) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # (>=) :: DecodeLongNamesError -> DecodeLongNamesError -> Bool # max :: DecodeLongNamesError -> DecodeLongNamesError -> DecodeLongNamesError # min :: DecodeLongNamesError -> DecodeLongNamesError -> DecodeLongNamesError # |