
#9398: Data.List.cycle is not a good producer -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.4 Component: | Version: 7.8.3 libraries/base | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by nomeata): Not sure what you mean. An optimization flag that changes whether `cycle []` is an error or nontermination? I don’t think this is a good idea. Anyways, as you said: It is more important that `cycle` is a good producer. I don’t see how an enclosing `foldr` would get in touch with the `augment` in `let cyc = augment cycle' cyc in cyc`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9398#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler