Diffstat (limited to 'src/parser/types.rs')
-rw-r--r--src/parser/types.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/types.rs b/src/parser/types.rs
index 3ee1d7d..f3bd7a3 100644
--- a/src/parser/types.rs
+++ b/src/parser/types.rs
@@ -20,6 +20,11 @@ pub type Input<'s> = MappedInput<
#[derive(Clone, Default)]
pub struct Λ<'s>(pub Vec<Spanned<Expr<'s>>>, Argc);
+impl PartialEq for Λ<'_> {
+ fn eq(&self, other: &Self) -> bool {
+ self.1 == other.1
+ }
+}
impl<'s> Λ<'s> {
pub fn of(x: Vec<Spanned<Expr<'s>>>) -> Self {
let s = Λ::sized(&x);