[Haskell-cafe] strictness and the simple continued fraction

William Lee Irwin III wli at holomorphy.com
Sat Oct 9 15:39:44 EDT 2004

On Sat, Oct 09, 2004 at 12:33:53PM -0700, William Lee Irwin III wrote:
> So, I discovered that simple continued fractions are supposed to be
> spiffy lazy lists and thought I'd bang out some continued fraction code.
> But then I discovered ContFrac.hs and couldn't really better it. Of
> course, I went about trying to actually do things relying on their
> laziness, and discovered they weren't as lazy as I hoped they'd be.
> Simple uses of approximations at the ghci command line such as:

Of course, I instantly discover the bug once I publicly embarrass myself.
Please disregard.

-- wli

More information about the Haskell-Cafe mailing list