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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to