Send Beginners mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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 <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Cc: [email protected]
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 <[email protected]>:

> 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 <[email protected]>
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> 
> 




------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 141, Issue 2
*****************************************

Reply via email to