aboutsummaryrefslogtreecommitdiff
path: root/AD.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-06-27 18:34:35 +0200
committerTom Smeding <tom@tomsmeding.com>2021-06-27 18:34:35 +0200
commitd4abcc3b2dfefbbcb7cd4a182eec64f1da42d951 (patch)
tree1ab301617043ac6df228ef617afa22633a01a671 /AD.hs
parent0fefe4822c65bde81ec4c0da1b5b32a9b411ca79 (diff)
Diffstat (limited to 'AD.hs')
-rw-r--r--AD.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/AD.hs b/AD.hs
index 76fefe4..c9ac72e 100644
--- a/AD.hs
+++ b/AD.hs
@@ -99,6 +99,7 @@ ad' env = \case
| TArray sht _ <- typeof e
, Refl <- prfDualSht sht
-> Shape (ad' env e)
+ Undef t -> Undef (dual t)
convIdx :: DEnv env env' -> Idx env a -> Either (Idx env' a) (Idx env' (Dual a))
convIdx ETop i = Left i