]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Index.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Index.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Index.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Index.scl
new file mode 100644 (file)
index 0000000..8a98aec
--- /dev/null
@@ -0,0 +1,8 @@
+import "Prelude"\r
+\r
+f :: Integer -> Maybe Integer\r
+f = index [(1,2),(2,4),(3,6),(4,8)]\r
+\r
+main = f 3\r
+--\r
+6
\ No newline at end of file