ContentsIndex
Parsers.Content
Description
this module parses the contents of a package and puts everything into a list of PackageContent data structures
Synopsis
defaultContent :: PackageContentItem
get_content :: FilePath -> IO ByteString
data FileType
= None
| Dir
| Sym
| Obj
data PackageContentItem = PackageContentItem {
fileType :: FileType
name :: ByteString
md5 :: ByteString
size :: ByteString
}
retrieve_package_content :: FilePath -> IO [PackageContentItem]
Documentation
defaultContent :: PackageContentItem
default Dependency data structure
get_content :: FilePath -> IO ByteString
read the CONTENT of a file and return it as a raw ByteString
data FileType
data type for describing the type of file in the PackageContent
Constructors
None
Dir
Sym
Obj
show/hide Instances
data PackageContentItem
data structure for holding a single entry in the CONTENTS file of a package
Constructors
PackageContentItem
fileType :: FileType
name :: ByteString
md5 :: ByteString
size :: ByteString
show/hide Instances
retrieve_package_content :: FilePath -> IO [PackageContentItem]
retrieve content of package located at location path
Produced by Haddock version 2.4.2