Hi all
I am trying to understand the interface between WxHaskell and WxWidgets
a little better. WxDirect generates the file
wxcore/src/Graphics/UI/WXCore/WcxClassesAL.hs . In this file we have the
function:
inputStreamGetC :: InputStream a -> IO Char
inputStreamGetC _obj
= withCharResult $
withObjectRef "inputStreamGetC" _obj $ \cobj__obj ->
wxInputStream_GetC cobj__obj
foreign import ccall "wxInputStream_GetC" wxInputStream_GetC :: Ptr (TInputStream a) -> IO CWchar
Notice how the foreign call returns CWchar. But looking at the wxwidets
manual
http://wxwidgets.org/manuals/2.6/wx_wxinputstream.html#wxinputstreamgetc
WxInputStream::GetC returns char and not wide-char.
Is this not an error in WxHaskell? Or what am I missing?
Greetings,
Mads Lindstrøm
|