aboutsummaryrefslogtreecommitdiff
path: root/src/Data
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-20 12:09:56 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2025-12-20 12:09:56 +0100
commitd076a85139c89f20898f957220825c0449eafb4f (patch)
tree6ffb068b981216e39447e3d4c37d7580f9a9c77c /src/Data
parent8e5f01c6fbc5c6f350899b8f7bb7a4cfb86a8eaa (diff)
Add a potentialy helpful bang for consistency
Diffstat (limited to 'src/Data')
-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 302a0fb..a69f4bb 100644
--- a/src/Data/Array/Nested/Mixed/Shape.hs
+++ b/src/Data/Array/Nested/Mixed/Shape.hs
@@ -251,7 +251,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)
{-# INLINEABLE ixxFromLinear #-}