[Haskell-cafe] Help understanding this type

Guru Devanla gurudev.devanla at gmail.com
Tue Nov 6 16:35:56 UTC 2018

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 type?

Please could someone help me wrap my head around this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20181106/d46fec96/attachment.html>

More information about the Haskell-Cafe mailing list