[Haskell-cafe] Run haskell program in emacs without typing "main" in the ghci buffer.

Nicolas Pouillard nicolas.pouillard at gmail.com
Tue Apr 27 11:07:33 EDT 2010


On Mon, 26 Apr 2010 12:43:39 -0700 (PDT), Zura_ <xyz at gol.ge> wrote:
> 
> Hello,
Hello,

> Is it possible to run haskell program in emacs without typing "main" in the
> ghci buffer? Assuming "main" function exists of course.
> Or, maybe automate sending "main\n" string to ghci buffer input.
> In other words, I want edit/run/see result style session.

This is not directly related but I use :cmd in order to :reload and call
main in only one GHCi command (easier for redoing it again and again).

:cmd (return":reload\n :main")

-- 
Nicolas Pouillard
http://nicolaspouillard.fr


More information about the Haskell-Cafe mailing list