haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
198 stars 50 forks source link

Not in scope: type constructor or class 'CBool' #127

Closed cocreature closed 9 years ago

cocreature commented 9 years ago

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.

ian-ross commented 9 years ago

Dammit. Sorry about that. I just introduced that today to fix another issue. I'll fix this tomorrow.

cocreature commented 9 years ago

Alright, thanks.