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%2FListSyntax9.scl;h=bec5af791a9a021d7d18affe0e8f40f715be4b29;hp=83de25518c0a3c212b61d7082c0df5605091ff94;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=0cbe7783b5f5297ab926fa742e023cfcbdcba43d diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ListSyntax9.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ListSyntax9.scl index 83de25518..bec5af791 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ListSyntax9.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ListSyntax9.scl @@ -1,12 +1,12 @@ -import "Prelude" - -a :: [Either Integer Integer] -a = [Left 1, Right 2, Left 3, Right 4] - -lefts :: [Either a b] -> [a] -lefts l = [x | y <- l, Left x = y] - -main :: [Integer] -main = lefts a --- +import "Prelude" + +a :: [Either Integer Integer] +a = [Left 1, Right 2, Left 3, Right 4] + +lefts :: [Either a b] -> [a] +lefts l = [x | y <- l, Left x = y] + +main :: [Integer] +main = lefts a +-- [1, 3] \ No newline at end of file