-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.14.0
-
Component/s: Haskell - Compiler
-
Labels:
-
External issue URL:
When the Haskell generator generate the data type like this
enum Sample1
{ A = 0, B = 1, C = 2 }enum Sample2
{ C = 0, D = 1, E = 2 }Output will be like this
data Sample1 = A|B|C
ā ...
data Sample2 = C|D|E
And this will make a compile error "Multiple declarations of āCā".
So I modified this to generate like this
data Sample1 = Sample1_A|Sample1_B|Sample1_C
ā ...
data Sample2 = Sample2_C|Sample2_D|Sample2_E
- links to