Skip to content

Commit bfef53b

Browse files
authored
Fix Foldable1 Lazy instance (#30)
1 parent 2950420 commit bfef53b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Data/Lazy.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ instance foldableWithIndexLazy :: FoldableWithIndex Unit Lazy where
102102
instance foldable1Lazy :: Foldable1 Lazy where
103103
foldMap1 f l = f (force l)
104104
fold1 = fold1Default
105+
foldr1 _ l = force l
106+
foldl1 _ l = force l
105107

106108
instance traversableLazy :: Traversable Lazy where
107109
traverse f l = defer <<< const <$> f (force l)

0 commit comments

Comments
 (0)