on master help sign in
Allow ZERO or more infix ops in core libraries

The other version allowed ONE or more.

commitbc1f2f0676969a9f1da67bb97c02e2db07bca7a9 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 19 Dec 2017, 18:40 (9 years ago) parent126a0e3
1 file changed+6−5
src/Parse/Parse.hs+6−5
src/Parse/Parse.hs+6−5
@@ -36,6 +36,7 @@ program pkg src =
3636 Result.throw syntaxError
3737
3838
39+
3940-- CHOMP PROGRAMS
4041
4142
@@ -69,8 +70,8 @@ chompDeclarations decls =
6970
7071chompInfixes :: [Src.Decl] -> P.Parser [Src.Decl]
7172chompInfixes decls =
72− do decl <- Decl.infix_
73− P.oneOf
74− [ chompInfixes (decl:decls)
75− , return (decl:decls)
76− ]
73+ P.oneOf
74+ [ do decl <- Decl.infix_
75+ chompInfixes (decl:decls)
76+ , return decls
77+ ]