
Well I tried and it displays the same with GHC 7.4.1.
However this is the output with GHC 7.0.4:
fwiw, I am getting a stack trace with 7.6.1.
-- stack.hs main = print $ foo [1] foo xs = bar xs ++ bar xs bar (x:xs) = [x, head xs]
$ ghc -prof -auto-all -rtsopts stack.hs
$ ./stack +RTS -xc *** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace: GHC.List.CAF --> evaluated by: Main.bar, called from Main.foo, called from Main.main, called from Main.CAF --> evaluated by: Main.main, called from Main.CAF stack: Prelude.head: empty list
-- Ozgur Akgun
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners