datadir (was: RE: new package description fields, sdist, and preprocessors)

Krasimir Angelov kr.angelov at
Tue Aug 9 05:05:00 EDT 2005

On 8/9/05, Bernard Pope <bjpop at> wrote:
> What if, say, you have some C code in your package that also wants to
> know the values of these paths?
> Bernie.

;-))  Then you can use something like:

char *prefix, *bindir, *libdir, *datadir;

void initPaths()
#include "paths.h"

It works for both Haskell and C if each line has ';' at the end.


More information about the Libraries mailing list