
5 Feb
2015
5 Feb
'15
6:46 p.m.
On Fri, Feb 06, 2015 at 12:42:14AM +0100, Peter Simons wrote:
This announcement left me totally amazed at the realization that neither "runhaskell" nor "ghci" seem to have a command-line option equivalent to "-c" in Bourne shell.
Am I missing something terribly obvious?
How about ghc -e 'do { putStrLn "What is your name?"; name <- getLine; putStrLn $ "Hello " ++ name }'