john lask wrote:
test1 = readFile big.dat = (\x-print $ parse x)
test2 = readFile big.dat = (\x-print $ fst $ parse x)
test1 (on a large file) will succeed in ghc but fail in hugs
test2 on same file will succeed in both ghc and hugs
big.dat is just some large data file say 1MB.
(not
(redirecting to haskell-cafe)
Tom Pledger wrote:
| sqnc p ts = let ( r, ts' ) = p ts in case r of
| Nothing - ([],ts')
| Just x - let (r',ts'') = (sqnc p ts') in
(x:r', ts'' )
:
I don't know how ghc is avoiding the stack