aboutsummaryrefslogtreecommitdiff
path: root/src/CHAD/AST/Bindings.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-11-22 22:41:09 +0100
committerTom Smeding <tom@tomsmeding.com>2025-11-22 22:41:09 +0100
commit9b7c3eea7e34f5eb0d91f93b803e853028c2cec8 (patch)
tree25b906bb49218d2743631d0c83e23717012e3b9b /src/CHAD/AST/Bindings.hs
parentb4f07c673b7c710f5861bb84e67233c63336c53d (diff)
WIP: Think about fusionfusion
Diffstat (limited to 'src/CHAD/AST/Bindings.hs')
-rw-r--r--src/CHAD/AST/Bindings.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CHAD/AST/Bindings.hs b/src/CHAD/AST/Bindings.hs
index c1a1e77..3ecda3e 100644
--- a/src/CHAD/AST/Bindings.hs
+++ b/src/CHAD/AST/Bindings.hs
@@ -28,7 +28,7 @@ data Bindings f env binds where
deriving instance (forall e t. Show (f e t)) => Show (Bindings f env env')
infixl `BPush`
-bpush :: Bindings (Expr x) env binds -> Expr x (Append binds env) t -> Bindings (Expr x) env (t : binds)
+bpush :: Bindings (Expr NoExt x) env binds -> Expr NoExt x (Append binds env) t -> Bindings (Expr NoExt x) env (t : binds)
bpush b e = b `BPush` (typeOf e, e)
infixl `bpush`
@@ -47,8 +47,8 @@ weakenBindings wf w (BPush b (t, x)) =
in (BPush b' (t, wf w' x), WCopy w')
weakenBindingsE :: env1 :> env2
- -> Bindings (Expr x) env1 binds
- -> (Bindings (Expr x) env2 binds, Append binds env1 :> Append binds env2)
+ -> Bindings (Expr NoExt x) env1 binds
+ -> (Bindings (Expr NoExt x) env2 binds, Append binds env1 :> Append binds env2)
weakenBindingsE = weakenBindings weakenExpr
weakenOver :: SList STy ts -> env :> env' -> Append ts env :> Append ts env'