Open W4RH4WK opened 8 years ago
Say I have an enum definied in C like this
enum MyEnum { SomeA, SomeB, SomeC };
Using {# enum MyEnum {} omit (SomeB) #} will result in
{# enum MyEnum {} omit (SomeB) #}
data MyEnum = SomeA | SomeC deriving (Enum)
Of course now the mapping is messed up since SomeB from C will map to SomeC in Haskell.
SomeB
SomeC
Edit: Using version 0.27.1 (29 Nov 2015)
0.27.1 (29 Nov 2015)
Say I have an enum definied in C like this
Using
{# enum MyEnum {} omit (SomeB) #}
will result inOf course now the mapping is messed up since
SomeB
from C will map toSomeC
in Haskell.Edit: Using version
0.27.1 (29 Nov 2015)