input of type String -> String

S.D.Mechveliani mechvel@math.botik.ru
Wed, 23 Jan 2002 15:00:39 +0300


I asked recently whether reading from file can be made of
type  String -> String.
I thought
"If Haskell is non-functional, probably, this would be possible, 
and I would try this in certain small example.
Otherwise, this is impossible, and I would be satisfied with  

           readFile name >>= putStr
"
Thanks to people who explained me that the former case is impossible.
So, Haskell is more functional than I thought.

-----------------
Serge Mechveliani
mechvel@botik.ru