cabal-debian-4.36.1: Create a Debianization for a Cabal package

Safe HaskellNone
LanguageHaskell2010

Debian.Debianize.DebianName

Description

How to name the debian packages based on the cabal package name and version number.

Synopsis

Documentation

debianName :: (Monad m, Functor m, PkgName name) => PackageType -> CompilerFlavor -> CabalT m name Source #

Build the Debian package name for a given package type.

debianNameBase :: Monad m => CabalT m DebBase Source #

Function that applies the mapping from cabal names to debian names based on version numbers. If a version split happens at v, this will return the ltName if < v, and the geName if the relation is >= v.

mkPkgName :: PkgName name => CompilerFlavor -> PackageName -> PackageType -> name Source #

Build a debian package name from a cabal package name and a debian package type. Unfortunately, this does not enforce the correspondence between the PackageType value and the name type, so it can return nonsense like (SrcPkgName "libghc-debian-dev").

mapCabal :: Monad m => PackageName -> DebBase -> CabalT m () Source #

Map all versions of Cabal package pname to Debian package dname. Not really a debian package name, but the name of a cabal package that maps to the debian package name we want. (Should this be a SrcPkgName?)

splitCabal :: Monad m => PackageName -> DebBase -> Version -> CabalT m () Source #

Map versions less than ver of Cabal Package pname to Debian package ltname

remapCabal :: Monad m => PackageName -> DebBase -> CabalT m () Source #

Replace any existing mapping of the cabal name pname with the debian name dname. (Use case: to change the debian package name so it differs from the package provided by ghc.)