Copyright | 2014-2015 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides data types of hackage meta information.
- data HackageVersion
- mkHackageVersion :: Int -> Int -> Int -> Int -> HackageVersion
- mkHackageVersion' :: [Int] -> HackageVersion
- hackageVersionNumbers :: HackageVersion -> [Int]
- data Hackage
- mkHackage :: String -> HackageVersion -> String -> Hackage
- hackageName :: Hackage -> String
- hackageVersion :: Hackage -> HackageVersion
- debianShortName :: Hackage -> String
- mkHackageDefault :: NameRule -> String -> HackageVersion -> Hackage
- data NameRule
- debianNamesFromSourceName :: NameRule -> String -> (String, String)
- hackageLongName :: Hackage -> String
- hackageArchiveName :: Hackage -> FilePath
- hackageArchive :: Hackage -> FilePath
- ghcLibraryBinPackages :: Hackage -> [String]
- ghcLibraryDocPackage :: Hackage -> String
- ghcLibraryPackages :: Hackage -> [String]
Documentation
data HackageVersion Source #
Hackage version type
mkHackageVersion :: Int -> Int -> Int -> Int -> HackageVersion Source #
Make HackageVersion
mkHackageVersion' :: [Int] -> HackageVersion Source #
Make HackageVersion
hackageVersionNumbers :: HackageVersion -> [Int] Source #
Extract hackage version numbers.
Hackage name and version type with debian short name. e.g. src-ext.
hackageVersion :: Hackage -> HackageVersion Source #
Get version of Hackage
:: NameRule | Rule flag to generate names |
-> String | Hackage name string |
-> HackageVersion | Version of hackage |
-> Hackage | Result hackage meta info |
Debian short name generate rule
debianNamesFromSourceName Source #
:: NameRule | Rule flag to generate name |
-> String | Debian source name or Hackage name string |
-> (String, String) | Debian source package name and short name like ("haskell-src-exts", "src-exts") |
Make debian short name from package name using NameRule
hackageLongName :: Hackage -> String Source #
Package name string with version
hackageArchiveName :: Hackage -> FilePath Source #
Package archive basename
hackageArchive :: Hackage -> FilePath Source #
Package archive pathname
ghcLibraryBinPackages :: Hackage -> [String] Source #
Debian library binary package names for GHC
ghcLibraryDocPackage :: Hackage -> String Source #
Debian library document package name for GHC
ghcLibraryPackages :: Hackage -> [String] Source #
Debian library package names for GHC