
19 Mar
2020
19 Mar
'20
7:48 a.m.
Try adding hFlush stdout just after your putStr (import System.IO)
--
Alex
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, March 19, 2020 12:36 PM, nowsnow
GHC 8.6.5
==========
import Data.Char
main = do putStr "Give me some input: " l <- getLine putStrLn $ map toUpper l ====run==== my str Give me some input:MY STR
===not:=== Give me some input:my str MY STR
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
nowsnow nowsnow@163.com
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners