diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-06-02 23:22:23 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-06-02 23:22:39 +0200 |
commit | 8344417a8ed9ad59337ce3b880e2fadf89bec964 (patch) | |
tree | f0e4fdc9d7a272f4f76dded3aae9871d4c3b7c66 /src/Data/Array/Nested/Ranked/Base.hs | |
parent | 75ee1572b75b45dcdc50e3af82ed50259ca77df0 (diff) |
WIP simplify Castable
Diffstat (limited to 'src/Data/Array/Nested/Ranked/Base.hs')
-rw-r--r-- | src/Data/Array/Nested/Ranked/Base.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Ranked/Base.hs b/src/Data/Array/Nested/Ranked/Base.hs index babc809..e4305e5 100644 --- a/src/Data/Array/Nested/Ranked/Base.hs +++ b/src/Data/Array/Nested/Ranked/Base.hs @@ -87,6 +87,8 @@ newtype instance MixedVecs s sh (Ranked n a) = MV_Ranked (MixedVecs s sh (Mixed -- these instances allow them to also be used as elements of arrays, thus -- making them first-class in the API. instance Elt a => Elt (Ranked n a) where + type EltC (Ranked n a) = Elt a + mshape (M_Ranked arr) = mshape arr mindex (M_Ranked arr) i = Ranked (mindex arr i) |