使用ghc 7.4.2构建gtk2hs-buildtools时,我收到以下警告:
c2hs/toplevel/C2HSConfig.hs:110:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static bitfield_direction" bitfield_direction
:: CInt
Run Code Online (Sandbox Code Playgroud)
即使我有FFI通话,我也会得到类似的警告import Foreign.C.Types(CInt).
摆脱这种警告的正确方法是什么?