hackport-0.7.2.1: Hackage and Portage integration tool
LicenseGPL-3+
Maintainerhaskell@gentoo.org
Safe HaskellNone
LanguageHaskell2010

Merge

Description

Core functionality of the merge command of HackPort.

Synopsis

Documentation

merge :: Verbosity -> RepoContext -> [String] -> FilePath -> Maybe String -> IO () Source #

This function is executed by the merge command of HackPort. Its functionality is as follows:

  1. Feed user input to readPackageString
  2. Look for a matching package on the hackage database
  3. Run mergeGenericPackageDescription with the supplied information
  4. Generate a coloured diff between the old and new ebuilds.

Various information is printed in between these steps depending on the Verbosity.

mergeGenericPackageDescription :: Verbosity -> FilePath -> Category -> GenericPackageDescription -> Bool -> Maybe String -> IO () Source #

Generate an ebuild from a GenericPackageDescription.