summaryrefslogtreecommitdiff
path: root/src/AST/UnMonoid.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-06-16 23:21:55 +0200
committerTom Smeding <tom@tomsmeding.com>2025-06-16 23:21:55 +0200
commit2b1a40b5933b8b0dceaae744e5b70cb604822c9d (patch)
tree652d6d88efd2b0b4502819297333305cec5242c4 /src/AST/UnMonoid.hs
parenteed0f2999d6f6c8485ef53deb38f9d0a67b4f88e (diff)
CHAD.hs compiles
Diffstat (limited to 'src/AST/UnMonoid.hs')
-rw-r--r--src/AST/UnMonoid.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AST/UnMonoid.hs b/src/AST/UnMonoid.hs
index ac4d733..389dd5a 100644
--- a/src/AST/UnMonoid.hs
+++ b/src/AST/UnMonoid.hs
@@ -105,7 +105,7 @@ plus (SMTArr _ t) a b =
a b
plus (SMTScal t) a b = EOp ext (OAdd t) (EPair ext a b)
-onehot :: SMTy t -> SAcPrj p t a -> Ex env (AcIdx p t) -> Ex env a -> Ex env t
+onehot :: SMTy t -> SAcPrj p t a -> Ex env (AcIdxS p t) -> Ex env a -> Ex env t
onehot typ topprj idx arg = case (typ, topprj) of
(_, SAPHere) ->
ELet ext arg $