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

2010-04-27 Thread Zura_
Jose A. Ortega Ruiz-2 wrote: > > Assuming you're using haskell-mode, does > > M-x inferior-haskell-load-and-run > This seems to be exactly what I want. Added couple of things: (defun haskell-run-preserve-focus () "Load and run but preserve focus." (interactive) (let ((

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

2010-04-27 Thread Nicolas Pouillard
On Mon, 26 Apr 2010 12:43:39 -0700 (PDT), Zura_ 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

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

2010-04-26 Thread Ivan Miljenovic
On 27 April 2010 05:43, Zura_ 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

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

2010-04-26 Thread Zura_
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. Thanks in advance, Zura -- View t