THRIFT-5072 Fix data type generation.
Client: hs
Patch: Homarechan <tikuwakunn@icloud.com>
This closes #1974
diff --git a/test/hs/TestClient.hs b/test/hs/TestClient.hs
index 93fb591..d014e08 100644
--- a/test/hs/TestClient.hs
+++ b/test/hs/TestClient.hs
@@ -193,16 +193,16 @@
-- Enum Test
putStrLn "testEnum"
- numz1 <- Client.testEnum prot ONE
- when (numz1 /= ONE) exitFailure
+ numz1 <- Client.testEnum prot Numberz_ONE
+ when (numz1 /= Numberz_ONE) exitFailure
putStrLn "testEnum"
- numz2 <- Client.testEnum prot TWO
- when (numz2 /= TWO) exitFailure
+ numz2 <- Client.testEnum prot Numberz_TWO
+ when (numz2 /= Numberz_TWO) exitFailure
putStrLn "testEnum"
- numz5 <- Client.testEnum prot FIVE
- when (numz5 /= FIVE) exitFailure
+ numz5 <- Client.testEnum prot Numberz_FIVE
+ when (numz5 /= Numberz_FIVE) exitFailure
-- Typedef Test
putStrLn "testTypedef"
diff --git a/test/hs/TestServer.hs b/test/hs/TestServer.hs
index b7731ab..c37dda3 100644
--- a/test/hs/TestServer.hs
+++ b/test/hs/TestServer.hs
@@ -212,10 +212,10 @@
testInsanity _ x = do
System.IO.putStrLn "testInsanity()"
- return $ Map.fromList [ (1, Map.fromList [ (TWO , x)
- , (THREE, x)
+ return $ Map.fromList [ (1, Map.fromList [ (Numberz_TWO , x)
+ , (Numberz_THREE, x)
])
- , (2, Map.fromList [ (SIX, default_Insanity)
+ , (2, Map.fromList [ (Numberz_SIX, default_Insanity)
])
]
diff --git a/test/hs/ThriftTest_Main.hs b/test/hs/ThriftTest_Main.hs
index 670023e..6421c6a 100644
--- a/test/hs/ThriftTest_Main.hs
+++ b/test/hs/ThriftTest_Main.hs
@@ -107,7 +107,7 @@
return (Map.fromList [(1, Map.fromList [(2, 2)])])
testInsanity _ x = do
- return (Map.fromList [(1, Map.fromList [(Types.ONE, x)])])
+ return (Map.fromList [(1, Map.fromList [(Types.Numberz_ONE, x)])])
testMulti _ _ _ _ _ _ _ = do
return (Types.Xtruct "" 0 0 0)