Safe Haskell | None |
---|---|
Language | Haskell98 |
- data CopyrightDescription = CopyrightDescription {}
- data FilesOrLicenseDescription
- = FilesDescription { }
- | LicenseDescription { }
- format :: Lens CopyrightDescription URI
- upstreamName :: Lens CopyrightDescription (Maybe Text)
- upstreamContact :: Lens CopyrightDescription (Maybe Text)
- source :: Lens CopyrightDescription (Maybe Text)
- disclaimer :: Lens CopyrightDescription (Maybe Text)
- summaryComment :: Lens CopyrightDescription (Maybe Text)
- summaryLicense :: Lens CopyrightDescription (Maybe License)
- summaryCopyright :: Lens CopyrightDescription (Maybe Text)
- filesAndLicenses :: Lens CopyrightDescription [FilesOrLicenseDescription]
- filesPattern :: Lens FilesOrLicenseDescription FilePath
- filesCopyright :: Lens FilesOrLicenseDescription Text
- filesLicense :: Lens FilesOrLicenseDescription License
- filesComment :: Lens FilesOrLicenseDescription (Maybe Text)
- license :: Lens FilesOrLicenseDescription License
- comment :: Lens FilesOrLicenseDescription (Maybe Text)
- newCopyrightDescription :: CopyrightDescription
- readCopyrightDescription :: Text -> CopyrightDescription
- parseCopyrightDescription :: [Paragraph' Text] -> Maybe CopyrightDescription
Documentation
data CopyrightDescription Source
Description of the machine readable debian/copyright file. A special case is used to represeent the old style free format file - if the value is equal to newCopyrightDescription except for the field _summaryComment, the text in _summaryComment is the copyright file.
readCopyrightDescription :: Text -> CopyrightDescription Source
Try to read a CopyrightDescription from a file