This file is indexed.

/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/X11-1.6.1.2-LN1z6AJRA5dI5d2mzKRchU/include/HsXlib.h is in libghc-x11-dev 1.6.1.2-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -----------------------------------------------------------------------------
 *
 * Definitions for package `X11' which are visible in Haskell land.
 *
 * ---------------------------------------------------------------------------*/

#ifndef HSXLIB_H
#define HSXLIB_H

#include <stdlib.h>

/* This doesn't always work, so we play safe below... */
#define XUTIL_DEFINE_FUNCTIONS

#include <X11/X.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>

#include <X11/extensions/Xrandr.h>

#ifdef HAVE_X11_EXTENSIONS_SCRNSAVER_H
#include <X11/extensions/scrnsaver.h>
#endif

/* Xutil.h overrides some functions with macros.
 * In recent versions of X this can be turned off with
 *
 *	#define XUTIL_DEFINE_FUNCTIONS
 *
 * before the #include, but this doesn't work with older versions.
 * As a workaround, we undef the macros here.  Note that this is only
 * safe for functions with return type int.
 */
#undef XDestroyImage
#undef XGetPixel
#undef XPutPixel
#undef XSubImage
#undef XAddPixel

#define XK_MISCELLANY
#define XK_LATIN1
#include <X11/keysymdef.h>

#include <X11/cursorfont.h>

/* This error handler is used from FFI code.
 * It generates a slightly better error message than the one
 * that comes with Xlib.
 */
extern int defaultErrorHandler(Display *, XErrorEvent *);

/* Used in waitForEvent */
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>

extern void fdZero(fd_set *set);
extern void fdSet(int fd, fd_set *set);

#endif