X11 libraries

Alastair Reid alastair@reid-consulting-uk.ltd.uk
Wed, 02 Apr 2003 13:15:08 +0100


> Yes, I'm sure your current location is fine.  Presumably it will
> appear as a ghc/nhc98 "package", just like HOpenGL, HaXml, etc.

That's the plan - I'm copying package descriptions over from HOpenGL
in the hope that they will work after suitable tweaking.

>> 2) Is this the right place to put the X11 module in the hierarchial
>> namespace?

> I don't know exactly what your X11 library provides, but assuming
> that it has a mix of rendering and user interface capabilities, I
> would guess that Graphics.X11 might be an OK location?

X11 provides most of what /usr/X11R6/lib/libX11.a contains.
That is, operations for input (mouse/kbd events and the like)
and operations for output (create windows, draw lines, fonts, etc.)

It doesn't provide any higher-level stuff like scrollbars, menus, etc.

> As for your Win32 library, again I don't know exactly what
> capabilities it provides.  If it is mainly a mixture of graphical
> things, then Graphics.Win32 would be right, but if it is wider in
> scope, such as perhaps interfacing to the entire win32 DLL, then
> System.Win32 would seem more appropriate.

It provides graphics (as in X11), input (as in X11), dialogue boxes
(unlike X11), file I/O (as in Posix), Win32 registry stuff, and a
bunch of other stuff.  It seems like System.Win32 is the right place
to put this in analogy to System.Posix.

A