From 8e5f01c6fbc5c6f350899b8f7bb7a4cfb86a8eaa Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Fri, 19 Dec 2025 10:17:18 +0100 Subject: Improve the implemenetation of fromSNat' leading to 6% lower allocation in Det.hs primal test. --- src/Data/Array/Nested/Mixed/Shape.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Data/Array/Nested/Mixed/Shape.hs') diff --git a/src/Data/Array/Nested/Mixed/Shape.hs b/src/Data/Array/Nested/Mixed/Shape.hs index c707f18..302a0fb 100644 --- a/src/Data/Array/Nested/Mixed/Shape.hs +++ b/src/Data/Array/Nested/Mixed/Shape.hs @@ -332,6 +332,7 @@ fromSMayNat :: (n ~ Nothing => i -> r) fromSMayNat f _ (SUnknown i) = f i fromSMayNat _ g (SKnown s) = g s +{-# INLINE fromSMayNat' #-} fromSMayNat' :: SMayNat Int n -> Int fromSMayNat' = fromSMayNat id fromSNat' -- cgit v1.2.3-70-g09d2