Don Stewart | 22 Dec 21:23
Favicon
Gravatar

Re: Why does this blow the stack?

dbenbenn:
> On 12/21/07, Stefan O'Rear <stefanor <at> cox.net> wrote:
> > Because they simply aren't the same.
> 
> Good point; thanks.  That means that Don's patch could theoretically
> break some existing Haskell program:
> 
> Prelude> length $ take 10 ([undefined ..] :: [Integer])
> 10

That's right. It makes Integer behave like the Int instance.

-- Don

Gmane