[Haskell-cafe] enumFrom* strangeness on GHC?
Felipe Almeida Lessa
felipe.lessa at gmail.com
Wed May 30 22:41:55 EDT 2007
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.
More information about the Haskell-Cafe
mailing list