X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FWhile2.scl;h=087dd106903d0fa5415dbb1ceaadc5bc65211bf1;hb=d0eb7b399ba1510610da9a7f4d29b671950f1426;hp=6567c22abbe6c711fb778cd9f2afb60f535a2fa9;hpb=602614f4502aae85ecf3967abb7152d2d62903e3;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While2.scl index 6567c22ab..087dd1069 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While2.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While2.scl @@ -1,12 +1,12 @@ -import "Prelude" hiding (while) - -while :: Maybe Boolean -> Maybe a -> Maybe () -while condM bodyM = mdo - cond <- condM - if cond - then bodyM >> while condM bodyM - else return () - -main = "FOO" --- +import "Prelude" hiding (while) + +while :: Maybe Boolean -> Maybe a -> Maybe () +while condM bodyM = mdo + cond <- condM + if cond + then bodyM >> while condM bodyM + else return () + +main = "FOO" +-- FOO \ No newline at end of file