]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Effects3.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Effects3.scl
index 7184829381e5e4941a050b8d6bd3a8f67f058419..5f2c8bb983caf4ebd7a6eab2c2ded27c4aa426f2 100644 (file)
@@ -1,12 +1,12 @@
-effectfulId :: a -> <Proc> a\r
-effectfulId x = x\r
-\r
-(.) :: (b -> <e> c) -> (a -> <e> b) -> a -> <e> c\r
-(f . g) x = f (g x)\r
-\r
-doubleId = effectfulId . effectfulId\r
-\r
-main :: Integer\r
-main = runProc (doubleId (13 :: Integer))\r
---\r
+effectfulId :: a -> <Proc> a
+effectfulId x = x
+
+(.) :: (b -> <e> c) -> (a -> <e> b) -> a -> <e> c
+(f . g) x = f (g x)
+
+doubleId = effectfulId . effectfulId
+
+main :: Integer
+main = runProc (doubleId (13 :: Integer))
+--
 13
\ No newline at end of file