aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-20 12:09:56 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2026-01-31 13:45:30 +0100
commit93e638b9fdf46cffb106ac6f647756bf693245e7 (patch)
tree26838ecdb7e19d983bbdf97d886f953d07d03a8e
parent92b83a159fd1806446ac2d8217ea342d7b83fd3e (diff)
Add a potentialy helpful bang for consistency
-rw-r--r--src/Data/Array/Nested/Mixed/Shape.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Nested/Mixed/Shape.hs b/src/Data/Array/Nested/Mixed/Shape.hs
index 6846a8b..77256ab 100644
--- a/src/Data/Array/Nested/Mixed/Shape.hs
+++ b/src/Data/Array/Nested/Mixed/Shape.hs
@@ -292,7 +292,7 @@ ixxToLinear :: Num i => IShX sh -> IxX sh i -> i
ixxToLinear = \sh i -> go sh i 0
where
go :: Num i => IShX sh -> IxX sh i -> i -> i
- go ZSX ZIX a = a
+ go ZSX ZIX !a = a
go (n :$% sh) (i :.% ix) a = go sh ix (fromIntegral (fromSMayNat' n) * a + i)