[Haskell-cafe] ANNOUNCE: bash script for haskell
Tom Ellis
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Thu Feb 5 23:46:38 UTC 2015
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 }'
More information about the Haskell-Cafe
mailing list