[Haskell-cafe] running ghci simply

Johann Bach johann.bach1127 at gmail.com
Mon Sep 6 03:42:51 EDT 2010

Is there a way to run a Haskell module via ghci with a single command
on the command-line?

Note: I'm on Windows XP.

If I have the module test.hs, I can type "test.hs" and that will load
it into ghci. However, I need to then type "main" to run it, and then
manually exit ghci. I would like to do all this in one step.

More information about the Haskell-Cafe mailing list