[GHC] #14124: add shrink prim-op for other array type

GHC ghc-devs at haskell.org
Wed Aug 16 12:51:39 UTC 2017


#14124: add shrink prim-op for other array type
-------------------------------------+-------------------------------------
        Reporter:  winter            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by winter):

 I suppose a modification from `fold'` 's document is OK:


 -- | The strict version of 'iterate'.

 -- It ensures that each step of the iterating is forced to weak head
 normal form before next step, avoiding the collection of thunks that would
 otherwise occur. This is often what you want to strictly step a function
 which produces a single, monolithic result (e.g. (+1)).

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


More information about the ghc-tickets mailing list