[Haskell-cafe] Interaction in Haskell
Dinh Tien Tuan Anh
tuananhbirm at hotmail.com
Mon Jul 11 07:25:23 EDT 2005
Hi,
im using Hugs 98 and learing how to use interactive Haskell.
As read in the book:
capitalise :: [Char] -> [Char]
capitalise = takeWhile(/='.') . map toUpper
interact capitalise
its said the program is FULLY INTERACTIVE, i.e: as soon as 'h' typed on the
keyboard, an 'H' appears on the screen. But the program above always waits
untill ENTER was hit to display the result
Is this normal ? Is the book right ?
I thought if the list was evaluated lazily, then it should be fully
interactive.
Cheers.
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
More information about the Haskell-Cafe
mailing list