haskell-gi-0.22.2: Generate Haskell bindings for GObject Introspection capable libraries

Safe HaskellSafe




pkgConfigGetVersion :: Text -> Text -> [Text] -> Bool -> Map Text Text -> IO (Maybe (Text, Text)) Source #

Get the pkg-config name and associated installed version of a given gobject-introspection namespace. Since the mapping is not one-to-one some guessing is involved, although in most cases the required information is listed in the GIR file.

tryPkgConfig :: Text -> IO (Maybe (Text, Text)) Source #

Try asking pkg-config for the version of a given module, and return the package name together with its version.