>Maybe you could do something like call out to a shell and ask it to run >'ghc --print-libdir'? That for me prints to stdout a string like >'/usr/lib64/ghc-6.8.2'. Yes, this looks like a solution. Thanks a lot!