]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Maybe4.scl
Fixed all line endings of the repository
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Maybe4.scl
index 53e3ed3d76dc1fe1affe9c7daad9ce5047e6ed56..7c11923e9d4b60acb47dc1e17215b499ad02b01f 100644 (file)
@@ -1,18 +1,18 @@
-import "Prelude" hiding (fromMaybe)\r
-import "Random"\r
-\r
-importJava "org.simantics.scl.compiler.tests.imports.Maybe4Imports" where\r
-    toMaybeDouble :: String -> <Random> Maybe a\r
-\r
-fromMaybe :: a -> Maybe a -> a\r
-fromMaybe _ (Just v) = v\r
-fromMaybe def _ = def\r
-\r
-f x = do\r
-    a = fromMaybe (-1.0) (toMaybeDouble x)\r
-    b = fromMaybe (-1.0) (toMaybeDouble ("1" + x))\r
-    a+b\r
-\r
-main = withSeed 123 (f "2.0")\r
---\r
+import "Prelude" hiding (fromMaybe)
+import "Random"
+
+importJava "org.simantics.scl.compiler.tests.imports.Maybe4Imports" where
+    toMaybeDouble :: String -> <Random> Maybe a
+
+fromMaybe :: a -> Maybe a -> a
+fromMaybe _ (Just v) = v
+fromMaybe def _ = def
+
+f x = do
+    a = fromMaybe (-1.0) (toMaybeDouble x)
+    b = fromMaybe (-1.0) (toMaybeDouble ("1" + x))
+    a+b
+
+main = withSeed 123 (f "2.0")
+--
 14.0
\ No newline at end of file