It seems that there used to be an include
dir at $(ghc --print-libdir)
, however, this is no longer the case. Now, the headers, e.g. of the RTS, are in $(ghc --print-libdir)/aarch64-osx-ghc-9.8.1/rts-1.0.2/include
, and of other libraries in different directories…
Is there some blessed way of finding the headers for GHC libraries to include them in a C executable, or what should we do?
There is always $(find $(ghc --print-libdir) -name HsFFI.h)
…