summaryrefslogtreecommitdiff
path: root/src/AST.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-15 11:32:34 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-15 11:32:34 +0100
commit6da98aedf2f28ec8848d1cb8f5605b0c7e64d644 (patch)
treec5723c920a200c001fd5f156f5f80f4a6eb11455 /src/AST.hs
parent095e7be937c2414cd34eb6288bd2c0856be63def (diff)
Complete accumulator revamp!
Diffstat (limited to 'src/AST.hs')
-rw-r--r--src/AST.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AST.hs b/src/AST.hs
index 1cdd710..ecd4647 100644
--- a/src/AST.hs
+++ b/src/AST.hs
@@ -89,6 +89,7 @@ data Expr x env t where
-- accumulation effect on monoids
EWith :: x (TPair a (D2 t)) -> STy t -> Expr x env (D2 t) -> Expr x (TAccum t : env) a -> Expr x env (TPair a (D2 t))
+ -- TODO: let this contain a OneHotTerm that is shared with EOneHot for uniformity in Simplify
EAccum :: x TNil -> STy t -> SAcPrj p t a -> Expr x env (AcIdx p t) -> Expr x env (D2 a) -> Expr x env (TAccum t) -> Expr x env TNil
-- monoidal operations (to be desugared to regular operations after simplification)