diff options
| author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2026-02-12 09:55:43 +0100 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2026-03-14 12:08:07 +0100 |
| commit | dbb51049d237dd325ad923b9e0c617ca1a2ee4eb (patch) | |
| tree | 528021cdc81c14972b6339412bc3da57bc8ba62d | |
| parent | 1c99e9ff0d18e323fe159e54af9775c46d4abd76 (diff) | |
Add a precautionary INLINEABLE to the now polymorphic shsTakeIx
| -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 |
