hoppy-std-0.7.1: C++ FFI generator - Standard library bindings

Safe HaskellNone
LanguageHaskell2010

Foreign.Hoppy.Generator.Std.Pair

Description

Bindings for std::pair.

Synopsis

Documentation

newtype Options Source #

Options for instantiating pair.

Constructors

Options 

Fields

defaultOptions :: Options Source #

The default options have no additional ClassFeatures.

newtype Contents Source #

A set of instantiated pair classes.

Constructors

Contents 

Fields

instantiate :: String -> Type -> Type -> Reqs -> Contents Source #

instantiate className a b reqs creates a set of bindings for an instantiation of std::pair<a, b>. In the result, the c_pair class has an external name of className.

instantiate' :: String -> Type -> Type -> Reqs -> Options -> Contents Source #

instantiate with additional options.

toExports :: Contents -> [Export] Source #

Converts an instantiation into a list of exports to be included in a module.