[Haskell-cafe] listing include files in a cabal file
Albert Y. C. Lai
trebla at vex.net
Fri Jun 2 17:01:54 UTC 2017
On 2017-05-30 02:13 PM, Patrick Pelletier wrote:
> And even when compiling via C, wouldn't
> the include already be picked up when it is part of the foreign
> declaration, e. g.:
>
> foreign import ccall unsafe "tmr_tag_data.h TMR_bytesToHex"
> c_TMR_bytesToHex :: Ptr Word8
> -> Word32
> -> CString
> -> IO ()
No for GHC.
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi-chap.html#using-header-files
More information about the Haskell-Cafe
mailing list