Hello,<br><br>&nbsp;&nbsp;&nbsp; I am reading the FFI spec. The following is unclear to me. Say I have<br><br>data Bonzo = A | B |C<br><br>and I want to &quot;poke&quot; Bonzo to an Int<br><br>A -&gt; 0<br><br>B -&gt; 1<br><br>C -&gt; 4<br>
<br>I have made&nbsp; Bonzo an instance of Storable.<br><br>How do I write the poke functions and call them?<br><br>Thanks, Vasili<br><br><br><br><br>