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

Safe Haskell | None
Language | Haskell2010

Data.GI.CodeGen.Overrides

Synopsis

- data Overrides
- parseOverrides :: Text -> IO (Either Text Overrides)
- filterAPIsAndDeps :: Overrides -> GIRInfo -> [GIRInfo] -> (Map Name API, Map Name API)

# Documentation

data Overrides Source #

#### Instances

Instances details

Monoid Overrides Source # | 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.
Instance details Defined in Data.GI.CodeGen.Overrides Methods mempty :: Overrides Source # mappend :: Overrides -> Overrides -> Overrides Source # mconcat :: [Overrides] -> Overrides Source #
Semigroup Overrides Source # | 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.
Instance details Defined in Data.GI.CodeGen.Overrides Methods (<>) :: Overrides -> Overrides -> Overrides Source # sconcat :: NonEmpty Overrides -> Overrides Source # stimes :: Integral b => b -> Overrides -> Overrides Source #
Show Overrides Source # |
Instance details Defined in Data.GI.CodeGen.Overrides Methods showsPrec :: Int -> Overrides -> ShowS Source # show :: Overrides -> String Source # showList :: [Overrides] -> ShowS Source #

parseOverrides :: Text -> IO (Either Text Overrides) Source #

Parse the given overrides, 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.