我想用c2hs寫一些快速綁定到一些ioctl函數(特別是獲取和設置窗口大小)。下面是我有什麼相關的部分: {-# LANGUAGE ForeignFunctionInterface #-}
#include <sys/ttycom.h>
#include <sys/ioctl.h>
module A where
import Foreign.Storable
impo
我正在用c2hs寫一些haskell 綁定,我想用Haddock 來自動生成構造函數和函數參數文件。不過, c2hs忽略了評論; {#enum define WinPos
{
CA as HA --^This comment is not shown in the .hs file
,CB as HB --^Neither this one
}
d