@@ -14,31 +14,31 @@ import Data.Text
1414import qualified Data.Map as M
1515
1616{-# ANN module ("Hlint: ignore Use newtype instead of data" :: String) #-}
17−data Test1T = Test1C Int
17+data Test1T = Test1C Integer
1818 deriving (Generic, Show, Eq, Binary, NFData, Atomable)
1919
2020data Test2T x = Test2C x
2121 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
2222
23−data Test3T = Test3C Int Int
23+data Test3T = Test3C Integer Integer
2424 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
2525
26−data Test4T = Test4Ca Int |
27− Test4Cb Int
26+data Test4T = Test4Ca Integer |
27+ Test4Cb Integer
2828 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
2929
30−data TestListT = TestListC [Int]
30+data TestListT = TestListC [Integer]
3131 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
3232
3333data Test5T = Test5C {
34− con1 :: Int,
35− con2 :: Int
34+ con1 :: Integer,
35+ con2 :: Integer
3636 } deriving (Show, Generic, Eq, Binary, NFData, Atomable)
3737
38−data Test6T = Test6C (Maybe Int)
38+data Test6T = Test6C (Maybe Integer)
3939 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
4040
41−data Test7T = Test7C (Either Int Int)
41+data Test7T = Test7C (Either Integer Integer)
4242 deriving (Show, Generic, Eq, Binary, NFData, Atomable)
4343
4444main :: IO ()
@@ -52,8 +52,8 @@ testList = TestList [testHaskell2DB, testADT1, testADT2, testADT3, testADT4, tes
5252-- test some basic data types like int, day, etc.
5353testBasicMarshaling :: Test
5454testBasicMarshaling = TestCase $ do
55− assertEqual "to IntAtom" (IntAtom 5) (toAtom (5 :: Int))
56− assertEqual "from IntAtom" (5 :: Int) (fromAtom (IntAtom 5))
55+ assertEqual "to IntAtom" (IntAtom 5) (toAtom (5 :: Integer))
56+ assertEqual "from IntAtom" (5 :: Integer) (fromAtom (IntAtom 5))
5757
5858 assertEqual "to BoolAtom" (BoolAtom False) (toAtom False)
5959 assertEqual "from BoolAtom" False (fromAtom (BoolAtom False))