
31 May
2007
31 May
'07
2:50 a.m.
On Wed, May 30, 2007 at 11:41:55PM -0300, Felipe Almeida Lessa wrote:
Hello =),
I'm puzzled, and maybe someone can help me out. Why does this happens?
$ time ghci -e "last $ take 1000000 $ [1..1000000]" 1000000
real 0m0.673s user 0m0.554s sys 0m0.024s
$ time ghci -e "last $ take 1000000 $ [1..]" *** Exception: stack overflow
real 0m1.305s user 0m1.057s sys 0m0.062s
$ ghci -V The Glorious Glasgow Haskell Compilation System, version 6.6
Looking at http://darcs.haskell.org/ghc-6.6/packages/base/GHC/Enum.lhs , I still have no clue of what may be happening. Any ideas? Should I file a bug on GHC?
No, because anything you file will be closed immediately as "duplicate of http://hackage.haskell.org/trac/ghc/ticket/1097" Stefan