List.partition should be more lazy

2001-11-23 Thread Bastiaan Heeren
Using the function partition from the List module, a control stack overflow occurs when evaluating the following expression: List head $ fst $ partition even [1..] (35929 reductions, 63867 cells) ERROR: Control stack overflow The definition of partition in both hugs and GHC

RE: List.partition should be more lazy

2001-11-23 Thread Simon Peyton-Jones
It was wrong in the Haskell report too (now fixed; see my home page). Also fixed in GHC 5.02. Simon | -Original Message- | From: Bastiaan Heeren [mailto:[EMAIL PROTECTED]] | Sent: 23 November 2001 13:55 | To: [EMAIL PROTECTED] | Subject: List.partition should be more lazy | | | Using