Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.9.3
-
None
-
GHC-8.0.1,Cabal-1.24.1,thrift-0.9.3
-
Important
Description
IDL:
enum ColorA {Red=0,Green=1}
enum ColorB {Red=0,Green=1}
HS:
data ColorA = Red | Green
data ColorB = Red | Green
Tip
the two datatype in one module file and the error appear when compiling
ERROR:
Multiple declarations of ‘Red’
Multiple declarations of ‘Green’