haskell-gi-0.26.2: Generate Haskell bindings for GObject Introspection capable libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.GI.CodeGen.API

Synopsis

Documentation

data API Source #

An element in the exposed API

Instances

Instances details
Show API Source # 
Instance details

Defined in Data.GI.CodeGen.API

Methods

showsPrec :: Int -> API -> ShowS #

show :: API -> String #

showList :: [API] -> ShowS #

data GIRInfo Source #

Constructors

GIRInfo 

Instances

Instances details
Show GIRInfo Source # 
Instance details

Defined in Data.GI.CodeGen.API

loadGIRInfo Source #

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 Source #

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 Source #

A rule for modifying the GIR file.

Constructors

GIRSetAttr (GIRPath, Name) Text

(Path to element, attrName), newValue.

GIRDeleteAttr GIRPath Name

Delete the given attribute

GIRAddNode GIRPath Name

Add a child node at the given selector.

GIRDeleteNode GIRPath

Delete any nodes matching the given selector.

Instances

Instances details
Show GIRRule Source # 
Instance details

Defined in Data.GI.CodeGen.API

type GIRPath = [GIRNodeSpec] Source #

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 Source #

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

Instances details
Show GIRNodeSpec Source # 
Instance details

Defined in Data.GI.CodeGen.API

data GIRNameTag Source #

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

Instances

Instances details
Show GIRNameTag Source # 
Instance details

Defined in Data.GI.CodeGen.API

data Name Source #

Name for a symbol in the GIR file.

Constructors

Name 

Fields

Instances

Instances details
Show Name Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

Eq Name Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

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

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

Ord Name Source # 
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 #

data Transfer Source #

Transfer mode for an argument or property.

Instances

Instances details
Show Transfer Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Eq Transfer Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Ord Transfer Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

data AllocationInfo Source #

Allocation/deallocation information for a given foreign pointer.

Instances

Instances details
Show AllocationInfo Source # 
Instance details

Defined in Data.GI.GIR.Allocation

data AllocationOp Source #

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

Instances details
Show AllocationOp Source # 
Instance details

Defined in Data.GI.GIR.Allocation

Eq AllocationOp Source # 
Instance details

Defined in Data.GI.GIR.Allocation

unknownAllocationInfo :: AllocationInfo Source #

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

data Direction Source #

Instances

Instances details
Show Direction Source # 
Instance details

Defined in Data.GI.GIR.Arg

Eq Direction Source # 
Instance details

Defined in Data.GI.GIR.Arg

Ord Direction Source # 
Instance details

Defined in Data.GI.GIR.Arg

data Scope Source #

Instances

Instances details
Show Scope Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

showsPrec :: Int -> Scope -> ShowS #

show :: Scope -> String #

showList :: [Scope] -> ShowS #

Eq Scope Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

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

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

Ord Scope Source # 
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 #

data DeprecationInfo Source #

Deprecation information on a symbol.

data EnumerationMember Source #

Member of an enumeration.

Instances

Instances details
Show EnumerationMember Source # 
Instance details

Defined in Data.GI.GIR.Enum

data MethodType Source #

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

Instances details
Show MethodType Source # 
Instance details

Defined in Data.GI.GIR.Method

Eq MethodType Source # 
Instance details

Defined in Data.GI.GIR.Method

data Constant Source #

Info about a constant.

Instances

Instances details
Show Constant Source # 
Instance details

Defined in Data.GI.GIR.Constant

data Arg Source #

Constructors

Arg 

Fields

Instances

Instances details
Show Arg Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

showsPrec :: Int -> Arg -> ShowS #

show :: Arg -> String #

showList :: [Arg] -> ShowS #

Eq Arg Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

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

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

Ord Arg Source # 
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 #

data Callable Source #

Constructors

Callable 

Fields

Instances

Instances details
Show Callable Source # 
Instance details

Defined in Data.GI.GIR.Callable

Eq Callable Source # 
Instance details

Defined in Data.GI.GIR.Callable

data Function Source #

Constructors

Function 

Fields

Instances

Instances details
Show Function Source # 
Instance details

Defined in Data.GI.GIR.Function

data Signal Source #

Instances

Instances details
Show Signal Source # 
Instance details

Defined in Data.GI.GIR.Signal

Eq Signal Source # 
Instance details

Defined in Data.GI.GIR.Signal

Methods

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

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

data Callback Source #

Instances

Instances details
Show Callback Source # 
Instance details

Defined in Data.GI.GIR.Callback

data Method Source #

Constructors

Method 

Fields

Instances

Instances details
Show Method Source # 
Instance details

Defined in Data.GI.GIR.Method

Eq Method Source # 
Instance details

Defined in Data.GI.GIR.Method

Methods

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

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

data Enumeration Source #

Instances

Instances details
Show Enumeration Source # 
Instance details

Defined in Data.GI.GIR.Enum

data Flags Source #

Constructors

Flags Enumeration 

Instances

Instances details
Show Flags Source # 
Instance details

Defined in Data.GI.GIR.Flags

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #