[Haskell-cafe] Help understanding this type
zemyla at gmail.com
Tue Nov 6 16:40:18 UTC 2018
The type on "Ptr" doesn't actually affect what's inside; it's a convenience
for programmers. The functions that do things with XEvents just read bytes
from the Ptr's location.
On Tue, Nov 6, 2018, 10:36 Guru Devanla <gurudev.devanla at gmail.com wrote:
> Hello Haskell-Cafe,
> I have been recently studying the XMonad code and some related types
> available in the X11 bindings library.
> I came across this type:
> newtype XEvent = XEvent XEventPtr
> type XEventPtr = Ptr
> Available here:
> 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
> Please could someone help me wrap my head around this?
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe