@@ -348,7 +348,7 @@ transform (Pipe pstep1 pstep2 pinitial) (Fold fstep finitial fextract) =
348348-- from the 'Foldable', the result is 'None' for empty containers.
349349{-# INLINABLE _Fold1 #-}
350350_Fold1 :: Monad m => (a -> a -> a) -> Fold m a (Maybe a)
351−_Fold1 step = Fold step_ (return Nothing') fromStrictMaybe
351+_Fold1 step = Fold step_ (return Nothing') (return . toMaybe)
352352 where
353353 step_ mx a = return $ Just' $
354354 case mx of
@@ -692,7 +692,7 @@ head = _Fold1 const
692692-- @since 0.7.0
693693{-# INLINABLE find #-}
694694find :: Monad m => (a -> Bool) -> Fold m a (Maybe a)
695−find predicate = Fold step (return Nothing') fromStrictMaybe
695+find predicate = Fold step (return Nothing') (return . toMaybe)
696696 where
697697 step x a = return $
698698 case x of
@@ -707,7 +707,7 @@ find predicate = Fold step (return Nothing') fromStrictMaybe
707707-- @since 0.7.0
708708{-# INLINABLE lookup #-}
709709lookup :: (Eq a, Monad m) => a -> Fold m (a,b) (Maybe b)
710−lookup a0 = Fold step (return Nothing') fromStrictMaybe
710+lookup a0 = Fold step (return Nothing') (return . toMaybe)
711711 where
712712 step x (a,b) = return $
713713 case x of