]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax2.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / MonadSyntax2.scl
1 import "Prelude"
2
3 a = [1, 2]
4 b = [5, 6]
5
6 main = do 
7   x <- a
8   y <- b
9   return (x+y) 
10 --
11 7:3-7:9: Bind statements are allowed only in mdo-blocks.
12 8:3-8:9: Bind statements are allowed only in mdo-blocks.