]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MissingEffect.scl
Fixed all line endings of the repository
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / MissingEffect.scl
index 9a5ea98c4d4fa540abd5cad6e193c46b4ca3b1ce..5adaf16f7244f582f327d4c830589b007f6dea7f 100644 (file)
@@ -1,15 +1,15 @@
-import "Prelude" hiding (findFirst)\r
-\r
-findFirst :: (a -> <e> Maybe b) -> [a] -> Maybe b\r
-findFirst f l = loop 0\r
-  where\r
-    len = length l\r
-    loop i                         \r
-        | i >= len  = Nothing\r
-        | otherwise = match f (l!i) with\r
-                        s @ (Just _) -> s\r
-                        Nothing      -> loop (i+1)\r
-\r
-main = "Not to be executed"\r
---\r
+import "Prelude" hiding (findFirst)
+
+findFirst :: (a -> <e> Maybe b) -> [a] -> Maybe b
+findFirst f l = loop 0
+  where
+    len = length l
+    loop i                         
+        | i >= len  = Nothing
+        | otherwise = match f (l!i) with
+                        s @ (Just _) -> s
+                        Nothing      -> loop (i+1)
+
+main = "Not to be executed"
+--
 9:29-9:36: Side-effect a is forbidden here.
\ No newline at end of file