]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Effects3.scl
(refs #7307) Added features field to SCL module header
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Effects3.scl
1 effectfulId :: a -> <Proc> a
2 effectfulId x = x
3
4 (.) :: (b -> <e> c) -> (a -> <e> b) -> a -> <e> c
5 (f . g) x = f (g x)
6
7 doubleId = effectfulId . effectfulId
8
9 main :: Integer
10 main = runProc (doubleId (13 :: Integer))
11 --
12 13