[Haskell-cafe] Run haskell program in emacs without typing
"main" in the ghci buffer.
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:
> 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")
More information about the Haskell-Cafe