Haskell Language Reading a line from standard input


Example

main = do
    line <- getLine
    putStrLn line

Input:

This is an example.

Output:

This is an example.