@@ -119,7 +119,6 @@ data NameType =
119data Binder a = Lam a
119data Binder a = Lam a
121 | Let a a
121 | Let a a
124 | GHole a
123 | GHole a
125 | Guess a a
124 | Guess a a
@@ -131,7 +130,6 @@ instance Functor Binder where
131 map f (Lam x) = Lam (f x)
130 map f (Lam x) = Lam (f x)
132 map f (Pi x k) = Pi (f x) (f k)
131 map f (Pi x k) = Pi (f x) (f k)
133 map f (Let x y) = Let (f x) (f y)
132 map f (Let x y) = Let (f x) (f y)
134− map f (NLet x y) = NLet (f x) (f y)
135 map f (Hole x) = Hole (f x)
133 map f (Hole x) = Hole (f x)
136 map f (GHole x) = GHole (f x)
134 map f (GHole x) = GHole (f x)
137 map f (Guess x y) = Guess (f x) (f y)
135 map f (Guess x y) = Guess (f x) (f y)
@@ -142,7 +140,6 @@ instance Foldable Binder where
142 foldr f z (Lam x) = f x z
140 foldr f z (Lam x) = f x z
143 foldr f z (Pi x k) = f x (f k z)
141 foldr f z (Pi x k) = f x (f k z)
144 foldr f z (Let x y) = f x (f y z)
142 foldr f z (Let x y) = f x (f y z)
145− foldr f z (NLet x y) = f x (f y z)
146 foldr f z (Hole x) = f x z
143 foldr f z (Hole x) = f x z
147 foldr f z (GHole x) = f x z
144 foldr f z (GHole x) = f x z
148 foldr f z (Guess x y) = f x (f y z)
145 foldr f z (Guess x y) = f x (f y z)
@@ -153,7 +150,6 @@ instance Traversable Binder where
153 traverse f (Lam x) = [| Lam (f x) |]
150 traverse f (Lam x) = [| Lam (f x) |]
154 traverse f (Pi x k) = [| Pi (f x) (f k) |]
151 traverse f (Pi x k) = [| Pi (f x) (f k) |]
155 traverse f (Let x y) = [| Let (f x) (f y) |]
152 traverse f (Let x y) = [| Let (f x) (f y) |]
156− traverse f (NLet x y) = [| NLet (f x) (f y) |]
157 traverse f (Hole x) = [| Hole (f x) |]
153 traverse f (Hole x) = [| Hole (f x) |]
158 traverse f (GHole x) = [| GHole (f x) |]
154 traverse f (GHole x) = [| GHole (f x) |]
159 traverse f (Guess x y) = [| Guess (f x) (f y) |]
155 traverse f (Guess x y) = [| Guess (f x) (f y) |]
@@ -564,8 +560,6 @@ mutual
564 ~(assert_total (quote k)))
560 ~(assert_total (quote k)))
565 quote (Let x y) = `(Let {a=TT} ~(assert_total (quote x))
561 quote (Let x y) = `(Let {a=TT} ~(assert_total (quote x))
566 ~(assert_total (quote y)))
562 ~(assert_total (quote y)))
567− quote (NLet x y) = `(NLet {a=TT} ~(assert_total (quote x))
568− ~(assert_total (quote y)))
569 quote (Hole x) = `(Hole {a=TT} ~(assert_total (quote x)))
563 quote (Hole x) = `(Hole {a=TT} ~(assert_total (quote x)))
570 quote (GHole x) = `(GHole {a=TT} ~(assert_total (quote x)))
564 quote (GHole x) = `(GHole {a=TT} ~(assert_total (quote x)))
571 quote (Guess x y) = `(Guess {a=TT} ~(assert_total (quote x))
565 quote (Guess x y) = `(Guess {a=TT} ~(assert_total (quote x))
@@ -586,7 +580,6 @@ mutual
586 quoteRawBinderTT (Lam x) = `(Lam {a=Raw} ~(quoteRawTT x))
580 quoteRawBinderTT (Lam x) = `(Lam {a=Raw} ~(quoteRawTT x))
587 quoteRawBinderTT (Pi x k) = `(Pi {a=Raw} ~(quoteRawTT x) ~(quoteRawTT k))
581 quoteRawBinderTT (Pi x k) = `(Pi {a=Raw} ~(quoteRawTT x) ~(quoteRawTT k))
588 quoteRawBinderTT (Let x y) = `(Let {a=Raw} ~(quoteRawTT x) ~(quoteRawTT y))
582 quoteRawBinderTT (Let x y) = `(Let {a=Raw} ~(quoteRawTT x) ~(quoteRawTT y))
589− quoteRawBinderTT (NLet x y) = `(NLet {a=Raw} ~(quoteRawTT x) ~(quoteRawTT y))
590 quoteRawBinderTT (Hole x) = `(Hole {a=Raw} ~(quoteRawTT x))
583 quoteRawBinderTT (Hole x) = `(Hole {a=Raw} ~(quoteRawTT x))
591 quoteRawBinderTT (GHole x) = `(GHole {a=Raw} ~(quoteRawTT x))
584 quoteRawBinderTT (GHole x) = `(GHole {a=Raw} ~(quoteRawTT x))
592 quoteRawBinderTT (Guess x y) = `(Guess {a=Raw} ~(quoteRawTT x) ~(quoteRawTT y))
585 quoteRawBinderTT (Guess x y) = `(Guess {a=Raw} ~(quoteRawTT x) ~(quoteRawTT y))
@@ -614,7 +607,6 @@ mutual
614 quoteRawBinderRaw (Lam x) = `(Lam {a=Raw} ~(quoteRawRaw x))
607 quoteRawBinderRaw (Lam x) = `(Lam {a=Raw} ~(quoteRawRaw x))
615 quoteRawBinderRaw (Pi x k) = `(Pi {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw k))
608 quoteRawBinderRaw (Pi x k) = `(Pi {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw k))
616 quoteRawBinderRaw (Let x y) = `(Let {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw y))
609 quoteRawBinderRaw (Let x y) = `(Let {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw y))
617− quoteRawBinderRaw (NLet x y) = `(NLet {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw y))
618 quoteRawBinderRaw (Hole x) = `(Hole {a=Raw} ~(quoteRawRaw x))
610 quoteRawBinderRaw (Hole x) = `(Hole {a=Raw} ~(quoteRawRaw x))
619 quoteRawBinderRaw (GHole x) = `(GHole {a=Raw} ~(quoteRawRaw x))
611 quoteRawBinderRaw (GHole x) = `(GHole {a=Raw} ~(quoteRawRaw x))
620 quoteRawBinderRaw (Guess x y) = `(Guess {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw y))
612 quoteRawBinderRaw (Guess x y) = `(Guess {a=Raw} ~(quoteRawRaw x) ~(quoteRawRaw y))