In Python one can say this:
python script.py
from the command line and receive script.py‘s output inlined. Is it possible to do this with Haskell’s GHCi? Basically I’m wondering if there’s a way to run a Haskell program from the command line without compiling and without the user entering the interpreter.
runghcis what you’re looking for. From its manpage:Edit: Ubuntu provides a symlink called
runhaskell, but it might not be standard.