
#10168: generalize filterM, mapAndUnzipM, zipWithM, zipWithM_, replicateM, replicateM_ -------------------------------------+------------------------------------- Reporter: strake888 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Core Libraries | Version: 7.10.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1324 Wiki Page: | -------------------------------------+------------------------------------- Comment (by dfeuer): My concern is that it will add that tiny factor to tight loops in `IO` and `ST` where every tiny little bit counts. Admittedly, the fact that I can't use an `STRef s Int` counter and get GHC to put it in a register rules out the use of `replicateM_` for a significant class of such loops, but I suspect my point is still valid. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10168#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler