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

Safe HaskellNone
LanguageHaskell98

Data.GI.CodeGen.API

Synopsis

Documentation

data GIRInfo #

Constructors

GIRInfo 
Instances
Show GIRInfo # 
Instance details

Defined in Data.GI.CodeGen.API

loadGIRInfo #

Arguments

:: Bool

verbose

-> Text

name

-> Maybe Text

version

-> [FilePath]

extra paths to search

-> [GIRRule]

fixups

-> IO (GIRInfo, [GIRInfo])

(parsed doc, parsed deps)

Load and parse a GIR file, including its dependencies.

loadRawGIRInfo #

Arguments

:: Bool

verbose

-> Text

name

-> Maybe Text

version

-> [FilePath]

extra paths to search

-> IO GIRInfo

bare parsed document

Bare minimum loading and parsing of a single repository, without loading or parsing its dependencies, resolving aliases, or fixing up structs or interfaces.

data GIRRule #

A rule for modifying the GIR file.

Constructors

GIRSetAttr (GIRPath, Name) Text

(Path to element, attrName), newValue.

GIRAddNode GIRPath Name

Add a child node at the given selector.

GIRDeleteNode GIRPath

Delete any nodes matching the given selector.

Instances
Show GIRRule # 
Instance details

Defined in Data.GI.CodeGen.API

type GIRPath = [GIRNodeSpec] #

Path to a node in the GIR file, starting from the document root of the GIR file. This is a very simplified version of something like XPath.

data GIRNodeSpec #

Node selector for a path in the GIR file.

Constructors

GIRNamed GIRNameTag

Node with the given "name" attr.

GIRType Text

Node of the given type.

GIRTypedName Text GIRNameTag

Combination of the above.

Instances
Show GIRNodeSpec # 
Instance details

Defined in Data.GI.CodeGen.API

data GIRNameTag #

A name tag, which is either a name or a regular expression.

Instances
Show GIRNameTag # 
Instance details

Defined in Data.GI.CodeGen.API

data Name #

Name for a symbol in the GIR file.

Constructors

Name 

Fields

Instances
Eq Name # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Ord Name # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

compare :: Name -> Name -> Ordering #

(<) :: Name -> Name -> Bool #

(<=) :: Name -> Name -> Bool #

(>) :: Name -> Name -> Bool #

(>=) :: Name -> Name -> Bool #

max :: Name -> Name -> Name #

min :: Name -> Name -> Name #

Show Name # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

data Transfer #

Transfer mode for an argument or property.

Instances
Eq Transfer # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Ord Transfer # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Show Transfer # 
Instance details

Defined in Data.GI.GIR.BasicTypes

data AllocationInfo #

Allocation/deallocation information for a given foreign pointer.

data AllocationOp #

Information about a given allocation operation. It is either disallowed, allowed via the given function, or it is unknown at the current stage how to perform the operation.

Instances
Eq AllocationOp # 
Instance details

Defined in Data.GI.GIR.Allocation

Show AllocationOp # 
Instance details

Defined in Data.GI.GIR.Allocation

unknownAllocationInfo :: AllocationInfo #

A convenience function, filling in all the allocation info to unknown.

data Scope #

Instances
Eq Scope # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

(==) :: Scope -> Scope -> Bool #

(/=) :: Scope -> Scope -> Bool #

Ord Scope # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

compare :: Scope -> Scope -> Ordering #

(<) :: Scope -> Scope -> Bool #

(<=) :: Scope -> Scope -> Bool #

(>) :: Scope -> Scope -> Bool #

(>=) :: Scope -> Scope -> Bool #

max :: Scope -> Scope -> Scope #

min :: Scope -> Scope -> Scope #

Show Scope # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

showsPrec :: Int -> Scope -> ShowS #

show :: Scope -> String #

showList :: [Scope] -> ShowS #

data DeprecationInfo #

Deprecation information on a symbol.

data MethodType #

Constructors

Constructor

Constructs an instance of the parent type

MemberFunction

A function in the namespace

OrdinaryMethod

A function taking the parent instance as first argument.

Instances
Eq MethodType # 
Instance details

Defined in Data.GI.GIR.Method

Show MethodType # 
Instance details

Defined in Data.GI.GIR.Method

data Constant #

Info about a constant.

Instances
Show Constant # 
Instance details

Defined in Data.GI.GIR.Constant

data Arg #

Constructors

Arg 

Fields

Instances
Eq Arg # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

(==) :: Arg -> Arg -> Bool #

(/=) :: Arg -> Arg -> Bool #

Ord Arg # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

compare :: Arg -> Arg -> Ordering #

(<) :: Arg -> Arg -> Bool #

(<=) :: Arg -> Arg -> Bool #

(>) :: Arg -> Arg -> Bool #

(>=) :: Arg -> Arg -> Bool #

max :: Arg -> Arg -> Arg #

min :: Arg -> Arg -> Arg #

Show Arg # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

showsPrec :: Int -> Arg -> ShowS #

show :: Arg -> String #

showList :: [Arg] -> ShowS #

data Function #

Constructors

Function 
Instances
Show Function # 
Instance details

Defined in Data.GI.GIR.Function

data Signal #

Instances
Eq Signal # 
Instance details

Defined in Data.GI.GIR.Signal

Methods

(==) :: Signal -> Signal -> Bool #

(/=) :: Signal -> Signal -> Bool #

Show Signal # 
Instance details

Defined in Data.GI.GIR.Signal

data Callback #

Instances
Show Callback # 
Instance details

Defined in Data.GI.GIR.Callback

data Method #

Instances
Eq Method # 
Instance details

Defined in Data.GI.GIR.Method

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Show Method # 
Instance details

Defined in Data.GI.GIR.Method

data Flags #

Constructors

Flags Enumeration 
Instances
Show Flags # 
Instance details

Defined in Data.GI.GIR.Flags

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #