haskell-gi
Safe HaskellNone
LanguageHaskell2010

Data.GI.CodeGen.CabalHooks

Description

Convenience hooks for writing custom Setup.hs files for bindings.

Synopsis

Documentation

setupBinding Source #

Arguments

:: Text

name

-> Text

version

-> Text

pkgName

-> Text

pkgVersion

-> Bool

verbose

-> Maybe FilePath

overrides file

-> [TaggedOverride]

Explicit overrides

-> [TaggedPkgConfigVersions]

Dependency versions

-> Maybe FilePath

output dir

-> IO () 

The entry point for Setup.hs files in bindings. The TaggedPkgConfigVersions should be taken from the pkgConfigVersions entries of the GI.Name.Config modules of the dependencies: if they do not agree with the versions currently reported by pkg-config a warning will be printed, since this typically leads to compilation errors.

setupCompatWrapper Source #

Arguments

:: String

New package

-> [Text]

List of files in the new package

-> IO () 

The entry point for Setup.hs files in compat bindings.

configureDryRun Source #

Arguments

:: Text

name

-> Text

version

-> Text

pkgName

-> Text

pkgVersion

-> Maybe FilePath

Overrides file

-> [TaggedOverride]

Other overrides to load

-> IO ([Text], Set Text) 

Return the list of modules that setupHaskellGIBinding would create, together with the set of dependencies loaded while generating the code.

data TaggedOverride Source #

Included overrides file.

Constructors

TaggedOverride 

Fields

data TaggedPkgConfigVersions Source #

The versions of the pkg-config packages that the bindings for a dependency were generated against, as recorded in the pkgConfigVersions entry of its GI.Name.Config module.

Constructors

TaggedPkgConfigVersions 

Fields