#5672: parBufferWHNF could be less subtle
----------------------------------+-----------------------------------------
Reporter: duncan | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone: 7.6.1
Component: libraries (other) | Version: 7.2.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
----------------------------------+-----------------------------------------
Comment(by simonmar):
The fix is slightly odd, because it makes `parBufferWHNF` strict in the
list elements. We'd have to update the generic `parBuffer` to be strict
in the list elements too, for consistency.
Arguably further sparks should be created by demand for the elements, not
the spine. Wouldn't this work?
{{{
ret (x:xs) (y:ys) = (y `par` x) : ret xs ys
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5672#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs