]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Bug4450.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Bug4450.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Bug4450.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Bug4450.scl
new file mode 100644 (file)
index 0000000..54e65c2
--- /dev/null
@@ -0,0 +1,15 @@
+import "Prelude"\r
+\r
+csvWrite :: String -> [[String]] -> <Proc> ()\r
+csvWrite fname rows = ()\r
+\r
+/// Like writeEntries but with a transformer function also for values.\r
+/// kfun key + vfun value should have the length of header.\r
+writeEntries' :: (k -> [String]) -> (v -> [String])\r
+    -> String -> [String] -> [(k, v)] -> <Proc> ()\r
+writeEntries' kfun vfun fname header rows =\r
+    csvWrite fname $ [header] + [kfun k + vfun v | (k, v) <- rows]\r
+    \r
+main = "OK"\r
+--\r
+OK
\ No newline at end of file