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%2FWhile2.scl;h=087dd106903d0fa5415dbb1ceaadc5bc65211bf1;hp=6567c22abbe6c711fb778cd9f2afb60f535a2fa9;hb=HEAD;hpb=1956b6ed85e1df65c4df58e6cb0ac6aa296e6939 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