aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested/Shaped/Base.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-06-02 23:22:23 +0200
committerTom Smeding <tom@tomsmeding.com>2025-06-02 23:22:39 +0200
commit8344417a8ed9ad59337ce3b880e2fadf89bec964 (patch)
treef0e4fdc9d7a272f4f76dded3aae9871d4c3b7c66 /src/Data/Array/Nested/Shaped/Base.hs
parent75ee1572b75b45dcdc50e3af82ed50259ca77df0 (diff)
WIP simplify Castable
Diffstat (limited to 'src/Data/Array/Nested/Shaped/Base.hs')
-rw-r--r--src/Data/Array/Nested/Shaped/Base.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Shaped/Base.hs b/src/Data/Array/Nested/Shaped/Base.hs
index ddd44bf..5c45abd 100644
--- a/src/Data/Array/Nested/Shaped/Base.hs
+++ b/src/Data/Array/Nested/Shaped/Base.hs
@@ -80,6 +80,8 @@ deriving instance Eq (Mixed sh (Mixed (MapJust sh') a)) => Eq (Mixed sh (Shaped
newtype instance MixedVecs s sh (Shaped sh' a) = MV_Shaped (MixedVecs s sh (Mixed (MapJust sh') a))
instance Elt a => Elt (Shaped sh a) where
+ type EltC (Shaped sh a) = Elt a
+
mshape (M_Shaped arr) = mshape arr
mindex (M_Shaped arr) i = Shaped (mindex arr i)