diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-02-12 09:55:43 +0100 |
|---|---|---|
| committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-02-18 14:20:06 +0100 |
| commit | bcb5d9f9a5e8385fd09c269933987bb6aeca8c65 (patch) | |
| tree | c2a4ff10ba0eef2fff9802f20424bd41b6f23685 /src/Data/Array/Nested | |
| parent | f32fdfbe16ba5510e141d8540627b40e01dc49f5 (diff) | |
Add a precautionary INLINEABLE to the now polymorphic shsTakeIx
Diffstat (limited to 'src/Data/Array/Nested')
| -rw-r--r-- | src/Data/Array/Nested/Shaped.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Shaped.hs b/src/Data/Array/Nested/Shaped.hs index 6034dc7..acb7c89 100644 --- a/src/Data/Array/Nested/Shaped.hs +++ b/src/Data/Array/Nested/Shaped.hs @@ -56,6 +56,7 @@ ssize = shsSize . sshape sindex :: Elt a => Shaped sh a -> IIxS sh -> a sindex (Shaped arr) idx = mindex arr (ixxFromIxS idx) +{-# INLINEABLE shsTakeIx #-} shsTakeIx :: Proxy sh' -> ShS (sh ++ sh') -> IxS sh i -> ShS sh shsTakeIx _ _ ZIS = ZSS shsTakeIx p sh (_ :.$ idx) = case sh of n :$$ sh' -> n :$$ shsTakeIx p sh' idx |
