Portability | portable |
---|---|
Stability | experimental |
Maintainer | ex8k.hibino@gmail.com |
Safe Haskell | Safe-Inferred |
This module provides data types of debian source package meta information.
- data DebianVersion
- versionFromHackageVersion :: HackageVersion -> Maybe String -> DebianVersion
- data Source
- mkSource :: String -> DebianVersion -> Source
- sourceName :: Source -> String
- version :: Source -> DebianVersion
- origVersion :: Source -> Version
- isNative :: Source -> Bool
- origArchiveName :: Source -> FilePath
- nativeArchiveName :: Source -> String
- sourceDirName :: Source -> FilePath
- deriveHackageVersion :: Source -> Maybe HackageVersion
- parseChangeLog :: String -> Maybe Source
- data HaskellPackage
- hackage :: HaskellPackage -> Hackage
- package :: HaskellPackage -> Source
- haskellPackageDefault :: NameRule -> String -> HackageVersion -> Maybe String -> HaskellPackage
- haskellPackageFromPackage :: String -> Source -> Either String HaskellPackage
Documentation
versionFromHackageVersion :: HackageVersion -> Maybe String -> DebianVersionSource
Make deebian version from hackage version
sourceName :: Source -> StringSource
Source package name of Source
version :: Source -> DebianVersionSource
Debian version of Source
origVersion :: Source -> VersionSource
Version without debian revision
origArchiveName :: Source -> FilePathSource
Original source archive basename
nativeArchiveName :: Source -> StringSource
Debian native archive basename
sourceDirName :: Source -> FilePathSource
Source directory basename
deriveHackageVersion :: Source -> Maybe HackageVersionSource
Try to make HackageVersion
from Source
Try to generate Source
from debian changelog string
hackage :: HaskellPackage -> HackageSource
Hackage
meta-info of HaskellPackage
package :: HaskellPackage -> SourceSource
Debian source package meta-info of HaskellPackage
:: NameRule | |
-> String | Hackage name string |
-> HackageVersion | Version of hackage |
-> Maybe String | Debian revision String |
-> HaskellPackage | Result structure |
Generate HaskellPackage
type from debian package name and version
using NameRule
haskellPackageFromPackageSource
:: String | Hackage name string |
-> Source | Debian package meta info |
-> Either String HaskellPackage | Result |
Generate HaskellPackage
with hackage name and debian package meta-info