aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/fun
diff options
context:
space:
mode:
authorMarvin Borner2024-06-09 23:34:17 +0200
committerMarvin Borner2024-06-09 23:34:17 +0200
commit0f8c73b9c36ecda45c02f26bbca0730da6fb9c0c (patch)
treef7ab8a4a8cbb0eb6df4c7a11ff503f544309160f /samples/fun
parentdba4ea41ce332f6945e61f580aee675a50a9b237 (diff)
Fixed IO function names
Diffstat (limited to 'samples/fun')
-rw-r--r--samples/fun/IO.bruijn4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/fun/IO.bruijn b/samples/fun/IO.bruijn
index 725e093..06facbd 100644
--- a/samples/fun/IO.bruijn
+++ b/samples/fun/IO.bruijn
@@ -3,4 +3,6 @@
:import std/IO .
-main read-line >>= [read-line >>= [return [0 2 1]]]
+main get-line >>= [get-line >>= [return [0 2 1]]]
+
+:test (main "i love\nmonads\n") ([0 [0 "i love" "monads"] [[0]]])