hs-bindgen-1.0.0.0: test-artefacts/fixtures/edge-cases/spec_examples/bindingspec.yaml
version:
hs_bindgen: 1.0.0.0
binding_specification: '1.0'
hsmodule: Example
ctypes:
- headers: edge-cases/spec_examples.h
cname: int16_T
hsname: Int16_T
- headers: edge-cases/spec_examples.h
cname: int32_T
hsname: Int32_T
- headers: edge-cases/spec_examples.h
cname: int64_T
hsname: Int64_T
- headers: edge-cases/spec_examples.h
cname: struct cint16_T
hsname: Cint16_T
- headers: edge-cases/spec_examples.h
cname: cint16_T
hsname: Cint16_T
- headers: edge-cases/spec_examples.h
cname: struct B
hsname: B
- headers: edge-cases/spec_examples.h
cname: struct A
hsname: A
- headers: edge-cases/spec_examples.h
cname: struct C
hsname: C
hstypes:
- hsname: A
representation:
record:
constructor: A
fields:
- a_x
- a_label
- a_samples
- a_b
- a_c
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: B
representation:
record:
constructor: B
fields: []
instances:
- Eq
- Generic
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: C
representation: emptydata
- hsname: Cint16_T
representation:
record:
constructor: Cint16_T
fields:
- cint16_T_re
- cint16_T_im
instances:
- Eq
- Generic
- HasCField
- HasField
- HasFieldCompat
- HasFieldPtr
- IsStruct
- ReadRaw
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Int16_T
representation:
newtype:
constructor: Int16_T
fields:
- unwrapInt16_T
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CShort
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Int32_T
representation:
newtype:
constructor: Int32_T
fields:
- unwrapInt32_T
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CInt
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw
- hsname: Int64_T
representation:
newtype:
constructor: Int64_T
fields:
- unwrapInt64_T
ffitype:
hsmodule: HsBindgen.Runtime.Support
hsname: CLLong
instances:
- Bitfield
- Bits
- Bounded
- Enum
- Eq
- FiniteBits
- Generic
- HasCField
- HasFFIType
- HasField
- HasFieldCompat
- HasFieldPtr
- Integral
- Ix
- Num
- Ord
- Prim
- Read
- ReadRaw
- Real
- Show
- StaticSize
- Storable
- WriteRaw