@@ -29,7 +29,7 @@ testBasicAtomFunction = TestCase $ do
2929 funcAtomExpr = FunctionAtomExpr "mkTest" [NakedAtomExpr (IntegerAtom 3)] ()
3030 tupleExprs = [TupleExpr (M.singleton "x" funcAtomExpr)]
3131 expectedResult = mkRelationFromList (V.fromList attrs) [[IntegerAtom 3]]
32− result <- executeRelationalExpr sess conn (MakeRelationFromExprs (Just (map NakedAttributeExpr attrs)) tupleExprs)
32+ result <- executeRelationalExpr sess conn (MakeRelationFromExprs (Just (map NakedAttributeExpr attrs)) (TupleExprs () tupleExprs))
3333
3434 assertEqual "simple atom function equality" expectedResult result
3535
@@ -40,7 +40,7 @@ testExceptionAtomFunction = TestCase $ do
4040 executeTutorialD sess conn "addatomfunction \"mkTest\" Integer -> Either AtomFunctionError Integer \"\"\"(\\(IntegerAtom x:xs) -> (error (show 1))) :: [Atom] -> Either AtomFunctionError Atom\"\"\""
4141 let attrs = [Attribute "x" IntegerAtomType]
4242 funcAtomExpr = FunctionAtomExpr "mkTest" [NakedAtomExpr (IntegerAtom 3)] ()
43− tupleExprs = [TupleExpr (M.singleton "x" funcAtomExpr)]
43+ tupleExprs = TupleExprs () [TupleExpr (M.singleton "x" funcAtomExpr)]
4444 result <- executeRelationalExpr sess conn (MakeRelationFromExprs (Just (map NakedAttributeExpr attrs)) tupleExprs)
4545 assertBool "catch error exception from script" (case result of
4646 Left (UnhandledExceptionError _) -> True
@@ -57,7 +57,7 @@ testNoArgumentAtomFunction = TestCase $ do
5757 executeTutorialD sess conn "addatomfunction \"mkTest\" Either AtomFunctionError Integer \"\"\"(\\x -> pure (IntegerAtom 5)) :: [Atom] -> Either AtomFunctionError Atom\"\"\""
5858 let attrs = [Attribute "x" IntegerAtomType]
5959 funcAtomExpr = FunctionAtomExpr "mkTest" [] ()
60− tupleExprs = [TupleExpr (M.singleton "x" funcAtomExpr)]
60+ tupleExprs = TupleExprs () [TupleExpr (M.singleton "x" funcAtomExpr)]
6161 expectedResult = mkRelationFromList (V.fromList attrs) [[IntegerAtom 5]]
6262 result <- executeRelationalExpr sess conn (MakeRelationFromExprs (Just (map NakedAttributeExpr attrs)) tupleExprs)
6363 assertEqual "no argument scripted function" expectedResult result
@@ -66,7 +66,7 @@ testArgumentTypeMismatch :: Test
6666testArgumentTypeMismatch = TestCase $ do
6767 (sess, conn) <- dateExamplesConnection emptyNotificationCallback
6868 executeTutorialD sess conn "addatomfunction \"mkTest\" Integer -> Either AtomFunctionError Integer \"\"\"(\\(IntegerAtom x:_) -> pure $ TextAtom \"wrong type\") :: [Atom] -> Either AtomFunctionError Atom\"\"\""
69− let tupleExprs = [TupleExpr (M.singleton "x" funcAtomExpr)]
69+ let tupleExprs = TupleExprs () [TupleExpr (M.singleton "x" funcAtomExpr)]
7070 funcAtomExpr = FunctionAtomExpr "mkTest" [NakedAtomExpr (IntegerAtom 3)] ()
7171 attrs = [Attribute "x" IntegerAtomType]
7272 expectedResult = Left (AtomTypeMismatchError IntegerAtomType TextAtomType)
@@ -80,7 +80,7 @@ testPolymorphicReturnType = TestCase $ do
8080 let funcAtomExpr = FunctionAtomExpr "fromMaybe" [NakedAtomExpr (IntegerAtom 5),
8181 NakedAtomExpr maybeAtom] ()
8282 maybeAtom = ConstructedAtom "Just" (maybeAtomType IntegerAtomType) [IntegerAtom 3]
83− relExpr = MakeRelationFromExprs Nothing [TupleExpr (M.singleton "x" funcAtomExpr)]
83+ relExpr = MakeRelationFromExprs Nothing (TupleExprs () [TupleExpr (M.singleton "x" funcAtomExpr)])
8484 mRelType <- typeForRelationalExpr sess conn relExpr
8585 case mRelType of
8686 Left err -> assertFailure (show err)
@@ -94,7 +94,7 @@ testPolymorphicReturnType = TestCase $ do
9494 let failFuncAtomExpr = FunctionAtomExpr "fromMaybe" [NakedAtomExpr (IntegerAtom 5),
9595 NakedAtomExpr mismatchAtom] ()
9696 mismatchAtom = ConstructedAtom "Just" (maybeAtomType TextAtomType) [TextAtom "fail"]
97− failRelExpr = MakeRelationFromExprs Nothing [TupleExpr (M.singleton "x" failFuncAtomExpr)]
97+ failRelExpr = MakeRelationFromExprs Nothing (TupleExprs () [TupleExpr (M.singleton "x" failFuncAtomExpr)])
9898 mFailRes <- executeRelationalExpr sess conn failRelExpr
9999 let expectedErr = Left (AtomFunctionTypeVariableMismatch "a" IntegerAtomType TextAtomType)
100100 assertEqual "expected type variable mismatch" expectedErr mFailRes
@@ -106,9 +106,9 @@ testScriptedTypeVariable = TestCase $ do
106106 executeTutorialD sess conn "addatomfunction \"idTest\" a -> Either AtomFunctionError a \"(\\\\(x:_) -> pure x) :: [Atom] -> Either AtomFunctionError Atom\""
107107 let attrs = [Attribute "x" IntegerAtomType]
108108 funcAtomExpr = FunctionAtomExpr "idTest" [NakedAtomExpr (IntegerAtom 3)] ()
109− tupleExprs = [TupleExpr (M.singleton "x" funcAtomExpr)]
109+ tupleExprs = TupleExprs () [TupleExpr (M.singleton "x" funcAtomExpr)]
110110 expectedResult = mkRelationFromList (V.fromList attrs) [[IntegerAtom 3]]
111111 result <- executeRelationalExpr sess conn (MakeRelationFromExprs (Just (map NakedAttributeExpr attrs)) tupleExprs)
112112
113113 assertEqual "id function equality" expectedResult result
114−
114+