Has*_*ant 6 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)#}
Run Code Online (Sandbox Code Playgroud)
如何在不编写太多FFI代码的情况下获取这些字段的Haddock文档?