From d076a85139c89f20898f957220825c0449eafb4f Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Sat, 20 Dec 2025 12:09:56 +0100 Subject: Add a potentialy helpful bang for consistency --- src/Data/Array/Nested/Mixed/Shape.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #-} -- cgit v1.2.3-70-g09d2