[Haskell-cafe] Lazy patterns

Jon Schneider haskell at jschneider.net
Wed Jun 10 14:00:21 UTC 2015

Good day,

I am trying to understand the lazy patterns as explained at


If I type in the example without putting a ~ round the pattern sure enough
I do not get an answer as the text says. What I completely fail to
understand is why there is no CPU usage, increasing memory usage, stack
overflow or other runtime error before I use ^C to stop it. What is going
on under the hood ?


More information about the Haskell-Cafe mailing list