Re: Generalizing replicateM?

It looks like M Farkas-Dyck submitted a patch to generalize filterM, mapAndUnzipM, zipWithM, zipWithM_, replicateM, and replicateM_ to use Applicative instead of Monad: https://ghc.haskell.org/trac/ghc/ticket/10168. Also, +1 on the suggestion. Let's tie up the loose ends of the AMP now that's it's official.

Alas, that ticket has been left alone. We should review it!
2015-07-07 23:14 GMT+09:00 Ryan Scott
It looks like M Farkas-Dyck submitted a patch to generalize filterM, mapAndUnzipM, zipWithM, zipWithM_, replicateM, and replicateM_ to use Applicative instead of Monad: https://ghc.haskell.org/trac/ghc/ticket/10168.
Also, +1 on the suggestion. Let's tie up the loose ends of the AMP now that's it's official.
_______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
participants (2)
-
Fumiaki Kinoshita
-
Ryan Scott