]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/MonadSyntax2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / MonadSyntax2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/MonadSyntax2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/MonadSyntax2.scl
new file mode 100644 (file)
index 0000000..6244a61
--- /dev/null
@@ -0,0 +1,12 @@
+import "Prelude"\r
+\r
+a = [1, 2]\r
+b = [5, 6]\r
+\r
+main = do \r
+  x <- a\r
+  y <- b\r
+  return (x+y) \r
+--\r
+7:3-7:9: Bind statements are allowed only in mdo-blocks.\r
+8:3-8:9: Bind statements are allowed only in mdo-blocks.
\ No newline at end of file