summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/redump.myr7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/regex/redump.myr b/lib/regex/redump.myr
index 920b257..5c1e7bc 100644
--- a/lib/regex/redump.myr
+++ b/lib/regex/redump.myr
@@ -57,10 +57,13 @@ const runall = {re, files
const dump = {re, fd
while true
match bio.readln(fd)
- | `std.Some ln:
+ | `bio.Ok ln:
show(re, ln, regex.exec(re, ln))
std.slfree(ln)
- | `std.None:
+ | `bio.Eof:
+ break
+ | `bio.Err:
+ std.put("error reading from input")
break
;;
;;