It's a bug in the defn of 'partition' in the Haskell 98 report.
I have (still) failed to publish this as an errata, let alone revise
the report itself, so the buggy defn stands at present, I'm afraid.
I really plan to get to the revision in early '01.
Simon
| -----Original Message-----
| From: George Russell [mailto:[EMAIL PROTECTED]]
| Sent: 22 December 2000 15:57
| To: [EMAIL PROTECTED]
| Subject: List.partition a bit too eager
|
|
| I think the following program
|
| import List
| main = putStr . show . fst . (partition id) . cycle $ [True,False]
|
| should display [True,True,True,...]. But instead, for both
| GHC and Hugs,
| you get a stack overflow. Is this a bug, or could someone
| explain it to me?
|
| _______________________________________________
| Haskell mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/haskell
|
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell