version: hs_bindgen: 0.1.0 binding_specification: '1.0' hsmodule: Example ctypes: - headers: functions/callbacks.h cname: FileOpenedNotification hsname: FileOpenedNotification - headers: functions/callbacks.h cname: ProgressUpdate hsname: ProgressUpdate - headers: functions/callbacks.h cname: DataValidator hsname: DataValidator - headers: functions/callbacks.h cname: struct Measurement hsname: Measurement - headers: functions/callbacks.h cname: MeasurementReceived hsname: MeasurementReceived - headers: functions/callbacks.h cname: MeasurementReceived2 hsname: MeasurementReceived2 - headers: functions/callbacks.h cname: SampleBufferFull hsname: SampleBufferFull - headers: functions/callbacks.h cname: struct MeasurementHandler hsname: MeasurementHandler - headers: functions/callbacks.h cname: struct DataPipeline hsname: DataPipeline - headers: functions/callbacks.h cname: union ProcessorCallback hsname: ProcessorCallback - headers: functions/callbacks.h cname: struct Processor hsname: Processor - headers: functions/callbacks.h cname: enum @Processor_mode hsname: Processor_mode - headers: functions/callbacks.h cname: foo hsname: Foo - headers: functions/callbacks.h cname: foo2 hsname: Foo2 hstypes: - hsname: DataPipeline representation: record: constructor: DataPipeline fields: - dataPipeline_preProcess - dataPipeline_process - dataPipeline_postProcess instances: - Eq - HasCField - HasField - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: DataValidator representation: newtype: constructor: DataValidator fields: - unwrapDataValidator instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: FileOpenedNotification representation: newtype: constructor: FileOpenedNotification fields: - unwrapFileOpenedNotification instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: Foo representation: newtype: constructor: Foo fields: - unwrapFoo instances: - Bitfield - Bits - Bounded - Enum - Eq - FiniteBits - HasCField - HasFFIType - HasField - Integral - Ix - Num - Ord - Prim - Read - ReadRaw - Real - Show - StaticSize - Storable - WriteRaw - hsname: Foo2 representation: newtype: constructor: Foo2 fields: - unwrapFoo2 instances: - Bitfield - Bits - Bounded - Enum - Eq - FiniteBits - HasCField - HasFFIType - HasField - Integral - Ix - Num - Ord - Prim - Read - ReadRaw - Real - Show - StaticSize - Storable - WriteRaw - hsname: Measurement representation: record: constructor: Measurement fields: - measurement_value - measurement_timestamp instances: - Eq - HasCField - HasField - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: MeasurementHandler representation: record: constructor: MeasurementHandler fields: - measurementHandler_onReceived - measurementHandler_validate - measurementHandler_onError instances: - Eq - HasCField - HasField - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: MeasurementReceived representation: newtype: constructor: MeasurementReceived fields: - unwrapMeasurementReceived instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: MeasurementReceived2 representation: newtype: constructor: MeasurementReceived2 fields: - unwrapMeasurementReceived2 instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: Processor representation: record: constructor: Processor fields: - processor_mode - processor_callback instances: - HasCField - HasField - ReadRaw - StaticSize - Storable - WriteRaw - hsname: ProcessorCallback representation: newtype: constructor: ProcessorCallback fields: - unwrapProcessorCallback instances: - HasCField - HasField - ReadRaw - StaticSize - Storable - WriteRaw - hsname: Processor_mode representation: newtype: constructor: Processor_mode fields: - unwrapProcessor_mode instances: - CEnum - Eq - HasCField - HasFFIType - HasField - Ord - Prim - Read - ReadRaw - SequentialCEnum - Show - StaticSize - Storable - WriteRaw - hsname: ProgressUpdate representation: newtype: constructor: ProgressUpdate fields: - unwrapProgressUpdate instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw - hsname: SampleBufferFull representation: newtype: constructor: SampleBufferFull fields: - unwrapSampleBufferFull instances: - Eq - HasCField - HasFFIType - HasField - Ord - ReadRaw - Show - StaticSize - Storable - WriteRaw