<br><br><div class="gmail_quote"><br><br>So Luke .. how do I go from (Sigval -&gt; ()), i..e notifyFunc, to FunPtr using the suggested data constructors? <br><br><div class="gmail_quote"><div class="Ih2E3d">On Sun, Jun 8, 2008 at 10:01 PM, Luke Palmer &lt;<a href="mailto:lrpalmer@gmail.com" target="_blank">lrpalmer@gmail.com</a>&gt; wrote:<br>

</div><div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/6/8 Galchin, Vasili &lt;<a href="mailto:vigalchin@gmail.com" target="_blank">vigalchin@gmail.com</a>&gt;:<br>


<div>&gt; Hello,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;I am getting what is to me a mysterious error in a test case that I am<br>
&gt; writing:<br>
&gt; vigalchin@ubuntu:~/FTP/Haskell/unix-2.2.0.0/tests/timer$ runhaskell<br>
&gt; Setup.lhs build<br>
&gt; Preprocessing executables for Test-1.0...<br>
&gt; Building Test-1.0...<br>
&gt; [1 of 1] Compiling Main &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( ./timer.hs,<br>
&gt; dist/build/timer/timer-tmp/Main.o )<br>
&gt;<br>
&gt; ./timer.hs:11:45: Not in scope: data constructor `FunPtr&#39;<br>
<br>
</div>There is a *type* called FunPtr in scope, but not a data constructor<br>
as you are using it. &nbsp;That is, you could say:<br>
<br>
 &nbsp;foo :: FunPtr (Int -&gt; IO ())<br>
<br>
That is, use the type called FunPtr, but you may not use a *function*<br>
called FunPtr, because it doesn&#39;t exist. &nbsp;You need to use functions<br>
like nullFunPtr, castPtrToFunPtr, etc. to construct FunPtrs.<br>
<font color="#888888"><br>
Luke<br>
</font></blockquote></div></div></div><br>
</div><br>