Closed snoyberg closed 8 years ago
You mean the generalization to Applicative
? Or something else?
Signature from 0.10.2:
omapM_ :: (MonoFoldable mono, Monad m) => (Element mono -> m ()) -> mono -> m ()
From 1.0.0:
omapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()
Hmm indeed, my bad. My confusion comes from the fact that my code used to build fine, now it's failing because:
Couldn't match type `Bool' with `()'
Expected type: Element (Maybe Authentication) -> IO ()
Actual type: Authentication -> IO Bool
In the second argument of `forM_', namely
Sorry for the noise, there must be something else at hand, I'll check better. Out of curiosity, what prevents you from generalizing to the below signature ?
omapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m a) -> mono -> m ()
It's a combination of a performance a correctness issue.
Fixed in 7540c8c6d363cdbf31d32d09e288862c69650698, included in new release 1.0.1.0. Thank you !