<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Martin reacts to my non-answer:<br>
<blockquote cite="mid:553D187B.6050201@web.de" type="cite">
<pre wrap="">Am 04/26/2015 um 05:28 PM schrieb Jerzy Karczmarczuk:
...
and GHCi says:
*Main> ex10
*** Exception: Prelude.head: empty list
</pre>
<pre wrap="">
This is because I have commented out two corner cases in tBind, to make sure it's not them. Remove the comments and
it'll work
</pre>
</blockquote>
Martin I sent you a private follow-up. I repeat it here.<br>
<br>
I uncommented those lines.<br>
Your program goes until the end of the list, and returns the <i><b>last</b></i>
element (modified). The form <br>
<br>
<b><font face="Courier New, Courier, monospace">tBind tpr f<br>
...<br>
(tTail tpr `tBind` f) </font></b><br>
<br>
loops until ...<br>
<br>
Now, I know about laziness... It seems that it doesn't help. Most
probably your hd is simply empty, and the tail gets stuck in an idle
loop.<br>
<br>
Jerzy Karczmarczuk<br>
<br>
</body>
</html>