You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Haddock comments in #fun commands are passed on to the generated file, so that imported function arguments can be documented. Is it possible to do the same for imported enums?
For example, if the C header file foo.h is
enum MyEnum{ FOO = 1, BAR = 2 };
and the CHS file is
#include "foo.h"
{# enum MyEnum
as MyEnum
{ FOO as Foo -- ^ foo
, BAR as Bar -- ^ bar
}
#}
then the generated hs file defines MyEnum as
data MyEnum = Foo
| Bar
The haddock comments have disappeared. Is it possible to maintain them during generation, so the generated file contains
data MyEnum = Foo -- ^ foo
| Bar -- ^ bar
The text was updated successfully, but these errors were encountered:
Haddock comments in
#fun
commands are passed on to the generated file, so that imported function arguments can be documented. Is it possible to do the same for importedenum
s?For example, if the C header file
foo.h
isand the CHS file is
then the generated hs file defines MyEnum as
The haddock comments have disappeared. Is it possible to maintain them during generation, so the generated file contains
The text was updated successfully, but these errors were encountered: