This module contains functions that can compare the API of one version of a package to another.
getBaseTemp
:: IO String
|
compareModulesFromPackages
:: Config -> Repository -> GlobalCache -> String -> (Int,Int,Int,Maybe String) -> String -> (Int,Int,Int,Maybe String) -> Maybe [String] -> ErrorLogger [(String,(Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl]))]
Compares two versions of a package from the global package cache. |
compareModulesFromPackageAndDir
:: Config -> Repository -> GlobalCache -> String -> String -> (Int,Int,Int,Maybe String) -> Maybe [String] -> ErrorLogger [(String,(Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl]))]
Compares a package version from a directory to a package version from the global package cache. |
compareModulesInDirs
:: Config -> Repository -> GlobalCache -> String -> String -> Maybe [String] -> ErrorLogger [(String,(Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl]))]
Compares package versions from two directories. |
compareApiModule
:: Package -> String -> [Package] -> Package -> String -> [Package] -> String -> IO (Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl])
Compares a single module from two package versions. |
showDifferences
:: [(Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl])] -> (Int,Int,Int,Maybe String) -> (Int,Int,Int,Maybe String) -> String
Prints a list of differences to the user. |
Differences between two versions of a package. First component is present if the module is missing in one of the package versions. The other components list the differences if the module is present in both versions.
Type synonym: Differences = (Maybe (Difference String),[Difference CFuncDecl],[Difference CTypeDecl],[Difference COpDecl])
A single difference between two versions of a module.
Constructors:
Addition
:: a -> Difference a
Removal
:: a -> Difference a
Change
:: a -> a -> Difference a
|
Compares two versions of a package from the global package cache.
|
Compares a package version from a directory to a package version from the global package cache.
|
Compares package versions from two directories.
|
Compares a single module from two package versions.
|
Prints a list of differences to the user.
|