I have a function that returns a Bool. c2hs turns
{#fun wlc_init as ^ { with*WLCInterface', withArrayLen [String]' } ->Bool' #} (ignore the withArrayLen, I still need to figure the rest out) into
foreign import ccall safe "WLC.chs.h wlcinit"
wlcInit' :: ((WLCInterfacePtr) -> (CInt -> (IO CBool)))
`
However CBool does not exist in Foreign.C.Types. I couldn't find it via Hayoo or Hoogle either.
I have a function that returns a Bool. c2hs turns
{#fun wlc_init as ^ { with*
WLCInterface', withArrayLen[String]' } ->
Bool' #}(ignore the withArrayLen, I still need to figure the rest out) into
foreign import ccall safe "WLC.chs.h wlcinit" wlcInit' :: ((WLCInterfacePtr) -> (CInt -> (IO CBool))) ` However CBool does not exist in Foreign.C.Types. I couldn't find it via Hayoo or Hoogle either.