File: Config.hs

package info (click to toggle)
haskell-haskell-gi 0.26.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: haskell: 8,617; ansic: 74; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- | Configuration for the code generator.
module Data.GI.CodeGen.Config
    ( Config(..)
    ) where

import Data.Text (Text)
import Data.GI.CodeGen.Overrides (Overrides)

data Config = Config {
      -- | GIR name of the module being generated (Gtk, GObject, ...).
      modName        :: Text,
      -- | Version of the GIR API for the package being generated
      -- ("3.0", "2.0", ...).
      modVersion     :: Text,
      -- | Haskell package being generated (gi-gtk, gi-gobject, ...).
      ghcPkgName        :: Text,
      -- | Version of the haskell package ("3.0.35", "2.0.21", ...).
      ghcPkgVersion     :: Text,
      -- | Whether to print extra info.
      verbose        :: Bool,
      -- | List of loaded overrides for the code generator.
      overrides      :: Overrides
    } deriving Show