aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/control/parser.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/control/parser.lux')
-rw-r--r--stdlib/source/lux/control/parser.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/lux/control/parser.lux b/stdlib/source/lux/control/parser.lux
index 4c5e827f9..7ad46dba8 100644
--- a/stdlib/source/lux/control/parser.lux
+++ b/stdlib/source/lux/control/parser.lux
@@ -61,7 +61,7 @@
## [Parsers]
(def: #export (assert message test)
{#.doc "Fails with the given message if the test is false."}
- (All [s] (-> Text Bool (Parser s Any)))
+ (All [s] (-> Text Bit (Parser s Any)))
(function (_ input)
(if test
(#e.Success [input []])
@@ -254,7 +254,7 @@
(wrap output)))
(def: #export (filter test parser)
- (All [s a] (-> (-> a Bool) (Parser s a) (Parser s a)))
+ (All [s a] (-> (-> a Bit) (Parser s a) (Parser s a)))
(do Monad<Parser>
[output parser
_ (assert "Constraint failed." (test output))]