Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: about "putStr" (Henry Yang) ---------------------------------------------------------------------- Message: 1 Date: Sat, 21 Mar 2020 01:36:00 +0000 (UTC) From: Henry Yang <hong...@hongy19.net> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Cc: beginners@haskell.org Subject: Re: [Haskell-beginners] about "putStr" Message-ID: <c862e68f-bb32-4307-a3a7-7e6bb00beacf@localhost> Content-Type: text/plain; charset=UTF-8 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 <nows...@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 <nows...@163.com> > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 141, Issue 2 *****************************************