hs-bindgen-1.0.0.0: test-artefacts/fixtures/binding-specs/fun_arg/macro/function_pointer/bindingspec.yaml
version:
hs_bindgen: 1.0.0.0
binding_specification: '1.0'
hsmodule: Example
ctypes:
- headers: binding-specs/fun_arg/macro/function_pointer.h
cname: MyFunctionPointer
hsname: MyFunctionPointer
- headers: binding-specs/fun_arg/macro/function_pointer.h
cname: macro A
hsname: A
- headers: binding-specs/fun_arg/macro/function_pointer.h
cname: macro B
hsname: B
- headers: binding-specs/fun_arg/macro/function_pointer.h
cname: macro E
hsname: E
hstypes:
- hsname: A
representation:
newtype:
constructor: A
fields:
- unwrapA
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: B
representation:
newtype:
constructor: B
fields:
- unwrapB
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: E
representation:
newtype:
constructor: E
fields:
- unwrapE
instances:
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- hsname: MyFunctionPointer
representation:
newtype:
constructor: MyFunctionPointer
fields:
- unwrapMyFunctionPointer
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: FunPtrVoid
instances:
- Eq
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Ord
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw