[Haskell-cafe] Re: [Haskell] simple function: stack overflow in hugs vs none in ghc

2007-09-24 Thread apfelmus
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

[Haskell-cafe] Re: [Haskell] simple function: stack overflow in hugs vs none in ghc

2007-09-23 Thread Isaac Dupree
(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