On Thu, Mar 13, 2008 at 05:52:05PM +0100, Bertram Felgenhauer wrote: > > ... Now evaluation of the parser state blows the stack... > > > > The code is at http://hpaste.org/6310 > > Apparently, stUpdate is too lazy. I'd define > > stUpdate' :: (s -> s) -> Parser s t () > stUpdate' f = stUpdate f >> stGet >>= (`seq` return ()) > > and try using stUpdate' instead of stUpdate in incCount.
Yes, that solves the stack issue. Thanks! -- Krzysztof Kościuszkiewicz Skype: dr.vee, Gadu: 111851, Jabber: [EMAIL PROTECTED] "Simplicity is the ultimate sophistication" -- Leonardo da Vinci _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe