
31 May
2007
31 May
'07
2:41 a.m.
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? Thanks, -- Felipe.