From 3b4b5dae625a7781abb59b5d0b593fc077507cf2 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 2 Jun 2025 23:22:23 +0200 Subject: WIP simplify Castable --- src/Data/Array/Nested/Ranked/Base.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Data/Array/Nested/Ranked') 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) -- cgit v1.2.3-70-g09d2