我如何使用Haddock和c2hs?

时间:2014-03-07 16:21:07

标签: haskell haddock c2hs

我正在使用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
  } 
  deriving (Eq,Ord,Show)#}

如何在没有这些字段的情况下获取Haddock文档 写了太多的FFI代码?

1 个答案:

答案 0 :(得分:1)

最新版本的c2hs现在支持此功能。