On 6 September 2010 17:42, Johann Bach <johann.bach1...@gmail.com> wrote: > 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.
Not sure if this will work in Windows, but you might be able to use runhaskell/runghc to run the script. -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe