Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- readArchive :: MonadIO m => FilePath -> Unfold m Void (Either Header ByteString)
- newtype Header = Header Entry
- data FileType
- headerFileType :: Header -> IO (Maybe FileType)
- headerPathName :: Header -> IO (Maybe ByteString)
- headerPathNameUtf8 :: Header -> IO (Maybe ByteString)
- headerSize :: Header -> IO (Maybe Int)
Read
readArchive :: MonadIO m => FilePath -> Unfold m Void (Either Header ByteString) Source #
Creates an unfold with which we can stream data out of the given archive.
Header
FileTypeRegular | |
FileTypeSymlink | |
FileTypeSocket | |
FileTypeCharDevice | |
FileTypeBlockDevice | |
FileTypeDirectory | |
FileTypeNamedPipe |
headerPathName :: Header -> IO (Maybe ByteString) Source #
headerPathNameUtf8 :: Header -> IO (Maybe ByteString) Source #