haskell-gi-0.20.1: Generate Haskell bindings for GObject Introspection capable libraries
Data.GI.CodeGen.Overrides
Synopsis
data Overrides Source #
Instances
Methods
showsPrec :: Int -> Overrides -> ShowS #
show :: Overrides -> String #
showList :: [Overrides] -> ShowS #
There is a sensible notion of zero and addition of Overridess, encode this so that we can view the parser as a writer monad of configs.
mempty :: Overrides #
mappend :: Overrides -> Overrides -> Overrides #
mconcat :: [Overrides] -> Overrides #
parseOverridesFile :: [Text] -> IO (Either Text Overrides) Source #
Parse the given config file (as a set of lines) for a given introspection namespace, filling in the configuration as needed. In case the parsing fails we return a description of the error instead.
filterAPIsAndDeps :: Overrides -> GIRInfo -> [GIRInfo] -> (Map Name API, Map Name API) Source #
Load a given API, applying filtering. Load also any necessary dependencies.