[Haskell-cafe] Why does this blow the stack?

Don Stewart dons at galois.com
Sat Dec 22 15:23:39 EST 2007


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


More information about the Haskell-Cafe mailing list