[Haskell-cafe] About the lazy pattern

Ketil Malde ketil at malde.org
Thu May 28 03:07:44 EDT 2009


张旭 <stircrazynemo at hotmail.com> writes:

> Hi, I am really new to haskell. I am reading "A gentle instruction
> to haskell" now. And I just cannot understand the chapter below. Is
> there anybody who can gives me some hints about why the pattern
> matching for "client" is so early? How does the pattern matching
> works here?  

Reading this thread, it occurs to me that I've probably never used a
lazy pattern in my code.  So if you, in spite of the helpful replies
you've got, still have problems understanding lazy patterns, it may be
an option to simply skip this part of the tutorial for now.

(Not that I recommend learning Haskell half-way, mind you, but it did
work for me :-)

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list