Skip to content

Commit 9d2b7b6

Browse files
authored
style: for -> forM (#39)
With the new parser `for` is deprecated in favor of `forM`. Signed-off-by: HerlufB <[email protected]>
1 parent b59a9de commit 9d2b7b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser.flix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ mod Parser {
8282
///
8383
pub def then(p1: Parser[a, b], p2: Parser[c, b]): Parser[(a, c), b] =
8484
inp ->
85-
for (
85+
forM (
8686
(x1, rest1) <- p1(inp);
8787
(x2, rest2) <- p2(rest1)
8888
) yield ((x1, x2), rest2)
@@ -109,7 +109,7 @@ mod Parser {
109109
///
110110
pub def using(p: Parser[a, b], f: a -> c): Parser[c, b] =
111111
inp ->
112-
for (
112+
forM (
113113
(x, rest) <- p(inp)
114114
) yield (f(x), rest)
115115

0 commit comments

Comments
 (0)