haskell-gi-0.23.0: Generate Haskell bindings for GObject Introspection capable libraries
Safe HaskellNone
LanguageHaskell2010

Data.GI.CodeGen.CtoHaskellMap

Description

Construct a map from C identifiers to the corresponding Haskell elements in the bindings.

Synopsis

Documentation

cToHaskellMap :: [(Name, API)] -> Map CRef Hyperlink Source #

Given a set of APIs, build a Map that given a Text corresponding to a certain C identifier returns the corresponding Haskell element in the bindings. For instance, gtk_widget_show will get mapped to show.

data Hyperlink Source #

Link to an identifier, module, etc.

Constructors

ValueIdentifier Text

An identifier at the value level: functions, data constructors, ...

TypeIdentifier Text

An identifier at the type level.

ModuleLink Text

Link to a module.

ModuleLinkWithAnchor (Maybe Text) Text Text

Link to an anchor inside a given module, with an optional label.

Instances