X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FMonadSyntax6.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FMonadSyntax6.scl;h=58ae542ff513c4cc9ad8cb4cb338f034e9b6d42b;hp=0000000000000000000000000000000000000000;hb=1cb8ccadc93ab1a1ac5981ea6634b3ef5dd27ec4;hpb=69f1fc8b5e6d38a07620fca440a5663b24e75e52 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax6.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax6.scl new file mode 100644 index 000000000..58ae542ff --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax6.scl @@ -0,0 +1,14 @@ +module { + features = [edo] +} + +import "StandardLibrary" + +example :: () -> Maybe Integer +example _ = edo + str <- Just "a" + let print str in Nothing + +main = example () +-- +10:9-10:18: Side-effect Proc is forbidden here. \ No newline at end of file