Skip to content

Commit 3e60f3a

Browse files
committed
Make sure the helper functions are inlined.
1 parent 610ebfb commit 3e60f3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Data/Sequence.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,11 @@ fromFunction len f | len < 0 = error "Data.Sequence.fromFunction called with neg
13911391
(createThree (i+(3+3*(trees'-2))*s))
13921392
where
13931393
createTwo j = Two (b j) (b (j + s))
1394+
{-# INLINE createTwo #-}
13941395
createThree j = Three (b j) (b (j + s)) (b (j + 2*s))
1396+
{-# INLINE createThree #-}
13951397
mb j = Node3 (3*s) (b j) (b (j + s)) (b (j + 2*s))
1398+
{-# INLINE mb #-}
13961399

13971400
-- Splitting
13981401

0 commit comments

Comments
 (0)