Make sure forFold can properly inline

This commit is contained in:
Julian Ospald 2021-02-25 15:40:52 +01:00
parent 45ab69960f
commit 47d9766c78
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 1 additions and 1 deletions

View File

@ -816,4 +816,4 @@ traverseFold f = foldl (\mb a -> (<>) <$> mb <*> f a) (pure mempty)
-- | Gathering monoidal values
forFold :: (Foldable t, Applicative m, Monoid b) => t a -> (a -> m b) -> m b
forFold = flip traverseFold
forFold = \t -> \f -> traverseFold f t