<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I use that all the time. It is for typechecking things passed to
C functions.</p>
<p>Greets, Branimir.<br>
</p>
<div class="moz-cite-prefix">On 11/6/18 5:35 PM, Guru Devanla wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAq9Y11RWXxF=G3WGDtve5K-ceq0mZ8WzZPs=nQS7J_BZtk_wg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div>Hello Haskell-Cafe,</div>
<div><br>
</div>
<div>I have been recently studying the XMonad code and some
related types available in the X11 bindings library.</div>
<div><br>
</div>
<div>I came across this type: <br>
</div>
<span class="gmail-keyword"><br>
</span></div>
<div dir="ltr"><span class="gmail-keyword">newtype</span> <a
id="gmail-t:XEvent" class="gmail-def" moz-do-not-send="true">XEvent
= XEvent XEventPtr</a>
<div><a id="gmail-t:XEvent" class="gmail-def"
moz-do-not-send="true"><br>
</a></div>
<div><font size="2"><span class="gmail-keyword">type</span> <a
id="gmail-t:XEventPtr" class="gmail-def"
moz-do-not-send="true">XEventPtr</a> = <a
href="http://hackage.haskell.org/package/base-4.10.1.0/docs/Foreign-Ptr.html#t:Ptr"
moz-do-not-send="true">Ptr</a> <a
href="http://hackage.haskell.org/package/X11-1.9/docs/Graphics-X11-Xlib-Event.html#t:XEvent"
moz-do-not-send="true">XEvent</a></font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">Available here: </font><br>
</div>
<div><a
href="http://hackage.haskell.org/package/X11-1.9/docs/Graphics-X11-Xlib-Event.html#t:XEvent"
moz-do-not-send="true">http://hackage.haskell.org/package/X11-1.9/docs/Graphics-X11-Xlib-Event.html#t:XEvent</a></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">It seems that this type is circular here.
how does one use this type? Is it possible to create a
value out of this type? What is the use of this type?<br>
</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">Please could someone help me wrap my head
around this?<br>
</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">Thanks</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2"><br>
</font></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
</body>
</html>