aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2026-02-12 09:55:43 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2026-02-18 14:20:06 +0100
commitbcb5d9f9a5e8385fd09c269933987bb6aeca8c65 (patch)
treec2a4ff10ba0eef2fff9802f20424bd41b6f23685 /src
parentf32fdfbe16ba5510e141d8540627b40e01dc49f5 (diff)
Add a precautionary INLINEABLE to the now polymorphic shsTakeIx
Diffstat (limited to 'src')
-rw-r--r--src/Data/Array/Nested/Shaped.hs1
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