[Haskell-cafe] Ackermann Function Memoization, GHC Weird Output or Bug?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Mar 14 00:20:04 EDT 2008

On Mar 13, 2008, at 23:47 , Donnie Jones wrote:

> It seems if I don't choose an upper bound pair for (m,n) that is  
> large enough I get truncated output for the answer, instead of GHC  
> giving me an array index exception...  This behavior seems very odd  
> to me, can someone explain?  Or is this a bug?

Per http://www.haskell.org/ghc/docs/latest/html/libraries/base/ 
Control-Exception.html:  "NOTE: GHC currently does not throw  

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list