@@ -440,10 +440,10 @@ data Expr s a
440
440
-- | > Var (V x 0) ~ x
441
441
-- > Var (V x n) ~ x@n
442
442
| Var Var
443
- -- | > Lam (FunctionBinding _ "x" _ _ A) b ~ λ(x : A) -> b
443
+ -- | > Lam _ (FunctionBinding _ "x" _ _ A) b ~ λ(x : A) -> b
444
444
| Lam (Maybe CharacterSet ) (FunctionBinding s a ) (Expr s a )
445
- -- | > Pi "_" A B ~ A -> B
446
- -- > Pi x A B ~ ∀(x : A) -> B
445
+ -- | > Pi _ "_" A B ~ A -> B
446
+ -- > Pi _ x A B ~ ∀(x : A) -> B
447
447
| Pi (Maybe CharacterSet ) Text (Expr s a ) (Expr s a )
448
448
-- | > App f a ~ f a
449
449
| App (Expr s a ) (Expr s a )
@@ -581,7 +581,7 @@ data Expr s a
581
581
| RecordLit (Map Text (RecordField s a ))
582
582
-- | > Union [(k1, Just t1), (k2, Nothing)] ~ < k1 : t1 | k2 >
583
583
| Union (Map Text (Maybe (Expr s a )))
584
- -- | > Combine Nothing x y ~ x ∧ y
584
+ -- | > Combine _ Nothing x y ~ x ∧ y
585
585
--
586
586
-- The first field is a `Just` when the `Combine` operator is introduced
587
587
-- as a result of desugaring duplicate record fields:
@@ -592,9 +592,9 @@ data Expr s a
592
592
-- > (Combine (Just k) x y)
593
593
-- > )]
594
594
| Combine (Maybe CharacterSet ) (Maybe Text ) (Expr s a ) (Expr s a )
595
- -- | > CombineTypes x y ~ x ⩓ y
595
+ -- | > CombineTypes _ x y ~ x ⩓ y
596
596
| CombineTypes (Maybe CharacterSet ) (Expr s a ) (Expr s a )
597
- -- | > Prefer False x y ~ x ⫽ y
597
+ -- | > Prefer _ False x y ~ x ⫽ y
598
598
--
599
599
-- The first field is a `True` when the `Prefer` operator is introduced as a
600
600
-- result of desugaring a @with@ expression
@@ -614,8 +614,8 @@ data Expr s a
614
614
| Project (Expr s a ) (Either [Text ] (Expr s a ))
615
615
-- | > Assert e ~ assert : e
616
616
| Assert (Expr s a )
617
- -- | > Equivalent x y ~ x ≡ y
618
- | Equivalent (Expr s a ) (Expr s a )
617
+ -- | > Equivalent _ x y ~ x ≡ y
618
+ | Equivalent (Maybe CharacterSet ) ( Expr s a ) (Expr s a )
619
619
-- | > With x y e ~ x with y = e
620
620
| With (Expr s a ) (NonEmpty Text ) (Expr s a )
621
621
-- | > Note s x ~ e
@@ -842,7 +842,7 @@ unsafeSubExpressions f (Merge a b t) = Merge <$> f a <*> f b <*> traverse f t
842
842
unsafeSubExpressions f (ToMap a t) = ToMap <$> f a <*> traverse f t
843
843
unsafeSubExpressions f (Project a b) = Project <$> f a <*> traverse f b
844
844
unsafeSubExpressions f (Assert a) = Assert <$> f a
845
- unsafeSubExpressions f (Equivalent a b) = Equivalent <$> f a <*> f b
845
+ unsafeSubExpressions f (Equivalent cs a b) = Equivalent cs <$> f a <*> f b
846
846
unsafeSubExpressions f (With a b c) = With <$> f a <*> pure b <*> f c
847
847
unsafeSubExpressions f (ImportAlt l r) = ImportAlt <$> f l <*> f r
848
848
unsafeSubExpressions _ (Let {}) = unhandledConstructor " Let"
@@ -1138,6 +1138,7 @@ denote = \case
1138
1138
Lam _ a b -> Lam Nothing (denoteFunctionBinding a) (denote b)
1139
1139
Pi _ t a b -> Pi Nothing t (denote a) (denote b)
1140
1140
Field a (FieldSelection _ b _) -> Field (denote a) (FieldSelection Nothing b Nothing )
1141
+ Equivalent _ a b -> Equivalent Nothing (denote a) (denote b)
1141
1142
expression -> Lens. over unsafeSubExpressions denote expression
1142
1143
where
1143
1144
denoteRecordField (RecordField _ e _ _) = RecordField Nothing (denote e) Nothing Nothing
0 commit comments