From 5bd76ea90313c3b469e1b7fce192f3cd54c57a33 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 13 Jan 2018 21:59:14 +0000 Subject: [PATCH] Read two arguments from commandline `!!` is the "list indexing" operator. It returns the value in the list on the lhs at the index on the rhs. `++` concatenates two lists. A string is a list of chars. --- app/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Main.hs b/app/Main.hs index c0766c1..cdd564b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -4,4 +4,4 @@ import System.Environment main :: IO () main = do args <- getArgs - putStrLn ("Hello, " ++ args !! 0) + putStrLn (args !! 0 ++ args !! 1) -- 2.48.1