[GHC] #10168: generalize filterM, mapAndUnzipM, zipWithM, zipWithM_, replicateM, replicateM_

GHC ghc-devs at haskell.org
Wed Nov 18 16:58:00 UTC 2015


#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 rwbarton):

 I would be worried about not just IO but also some kind of structure that
 is intended to be produced and consumed in a streaming fashion, in O(1)
 space. Seems like that could blow up space usage arbitrarily with a
 repeated-squaring implementation.

 Including separate versions that use repeated squaring would make more
 sense (if we should include them at all; the use cases seem obscure and
 anyone can (already) just provide them in a package outside base).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10168#comment:23>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list