2Note that if the platform defines __STDC_ISO_10646__ then wchar_t characters are Unicode code points, and thus, the conversion between Haskell Char and CWchar is a simple cast. On other platforms, the translation is locale-dependent, just as for CChar.