<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Christian Maeder wrote:
<blockquote cite="mid42CD1B00.5070004@tzi.de" type="cite">
<blockquote type="cite">
<pre wrap="">
-- a filter program process an entire input to yield some output
type FilterProgram = [Line] -> [Line]
</pre>
</blockquote>
<pre wrap=""><!---->
Forget this, if it's not an (old) exercise
</pre>
</blockquote>
Yes, people don't write lazy functional programs in Haskell any more.
In the Era of Monadic Enlightenment, obfuscated imperative programming
is the Way To Go. <span class="moz-smiley-s7"><span> :-\ </span></span><span
class="moz-smiley-s1"><span> :-) </span></span><br>
<br>
However, for those who like to indulge the odd moment of nostalgia, in
the Haskell 98 Prelude there is:<br>
<br>
interact :: (String -> String) -> IO ()<br>
<br>
If this function does not work correctly with the Haskell
implementation you use, do report the fault to the implementors.<br>
<br>
Colin R<br>
(purveyor of old exercises)<br>
<br>
<br>
<br>
</body>
</html>