[Haskell-beginners] about "putStr"

Henry Yang hongy19 at hongy19.net
Sat Mar 21 01:36:00 UTC 2020


Try putStrLn or put "/n" at end of first putStr

main = do
putStrLn "Give me some input: "
l <- getLine
putStrLn $ map toUpper l

Mar 19, 2020 7:37:15 PM nowsnow <nowsnow at 163.com>:

> 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 at 163.com>
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> 
> 




More information about the Beginners mailing list