
Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows. Thx in advanced -- View this message in context: http://www.nabble.com/Best-text-editor-tp23018470p23018470.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that. -Mike Melanie_Green wrote:
Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows.
Thx in advanced

Michael Mossey
I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Just keep hitting tab until you have the indentation you want. -k -- If I haven't seen further, it is by standing in the footprints of giants

Ketil Malde wrote:
Michael Mossey
writes: I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Just keep hitting tab until you have the indentation you want.
-k
Well, that's a bit like driving a car and saying, "Keep turning the wheel back and forth until the car goes in the direction you want." Seriously, good user interfaces have simple, predictable behavior. Also, very often you never get the indentation you want no matter how many times you hit tab. Of course, I'm grateful to have a haskell-mode at all, and the syntax highlighting is helpful, so I don't want to complain too much. I tried switching to the "simple indentation mode" but I can't tell the difference. I would like a mode that advances to the right in a simple way (checks lines above for alignment positions, and advances one position at a time). Maybe I'll write one. I do have a bit of experience with emacs lisp. Thanks, Mike

Michael P Mossey wrote:
Ketil Malde wrote:
Michael Mossey
writes: I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Just keep hitting tab until you have the indentation you want.
-k
Well, that's a bit like driving a car and saying, "Keep turning the wheel back and forth until the car goes in the direction you want." Seriously, good user interfaces have simple, predictable behavior. Also, very often you never get the indentation you want no matter how many times you hit tab. Of course, I'm grateful to have a haskell-mode at all, and the syntax highlighting is helpful, so I don't want to complain too much. I tried switching to the "simple indentation mode" but I can't tell the difference.
I would like a mode that advances to the right in a simple way (checks lines above for alignment positions, and advances one position at a time). Maybe I'll write one. I do have a bit of experience with emacs lisp.
Thanks, Mike
I use console emacs in a Screen session over ssh. The haskell-mode tabbing annoyed me at first, but i learned to love it.

There used to be Visual Haskell - an extension to Visual Studio - but that
never took off.
Too bad, because these days you can download the freely available Visual
Studio Shellhttp://msdn.microsoft.com/en-us/vsx2008/products/bb933751.aspx ,
and Visual Haskell had some unique features (such as hovering tooltips
showing types) that are now found in the F# editor, and should now be easier
to implement with the recent GHC API (I guess).
Maybe this is a good Google Summer Of Code project; getting Visual Haskell
up and running again with Visual Studio Shell...
On Tue, Apr 14, 2009 at 12:06 AM, Michael P Mossey
Ketil Malde wrote:
Michael Mossey
writes: I'm a beginner, but I'll chime in and say I use Emacs with
haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Just keep hitting tab until you have the indentation you want.
-k
Well, that's a bit like driving a car and saying, "Keep turning the wheel back and forth until the car goes in the direction you want." Seriously, good user interfaces have simple, predictable behavior. Also, very often you never get the indentation you want no matter how many times you hit tab. Of course, I'm grateful to have a haskell-mode at all, and the syntax highlighting is helpful, so I don't want to complain too much. I tried switching to the "simple indentation mode" but I can't tell the difference.
I would like a mode that advances to the right in a simple way (checks lines above for alignment positions, and advances one position at a time). Maybe I'll write one. I do have a bit of experience with emacs lisp.
Thanks, Mike
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

and Visual Haskell had some unique features (such as hovering tooltips showing types) that are now found in the F# editor, and should now be easier to implement with the recent GHC API (I guess).
haskell-mode for Emacs does show the type signature of standard functions in the mini-buffer when the cursor is over them. JP

Michael P Mossey
Ketil Malde wrote:
Michael Mossey
writes: I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Just keep hitting tab until you have the indentation you want.
-k
Well, that's a bit like driving a car and saying, "Keep turning the wheel back and forth until the car goes in the direction you want." Seriously, good user interfaces have simple, predictable behavior. Also, very often you never get the indentation you want no matter how many times you hit tab. Of course, I'm grateful to have a haskell-mode at all, and the syntax highlighting is helpful, so I don't want to complain too much. I tried switching to the "simple indentation mode" but I can't tell the difference.
I would like a mode that advances to the right in a simple way (checks lines above for alignment positions, and advances one position at a time). Maybe I'll write one. I do have a bit of experience with emacs lisp.
Is there something we can learn from python-mode? I haven't written python code since I started using haskell. If memory serves, my impression is that the indentation in python-mode worked more natural. -- c/* __o/* <\ * (__ */\ <

Xiao-Yong Jin wrote:
Michael P Mossey
writes: lines above for alignment positions, and advances one position at a time). Maybe I'll write one. I do have a bit of experience with emacs lisp.
Is there something we can learn from python-mode? I haven't written python code since I started using haskell. If memory serves, my impression is that the indentation in python-mode worked more natural.
I like python-mode, but python layout is much simpler. Also, the behavior of the python-mode tab key is more predictable: it goes first to the rightmost stop that makes sense, then repeated clicks of the tab key move the cursor to the left one tab stop at a time. Again, I don't want to be too critical of haskell-mode because it is great to have it at all. I would prefer simpler behavior of the tab key, that's all. Maybe I can write it. -Mike

I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
I clearly recommend Emacs with haskell-mode, but I agree that the
indentation is problematic. Note that the code in the CVS repository
comes with a completely new indentation algorithm courtesy of Kristof
Bastiaensen

Stefan Monnier
I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
I clearly recommend Emacs with haskell-mode, but I agree that the indentation is problematic. Note that the code in the CVS repository comes with a completely new indentation algorithm courtesy of Kristof Bastiaensen
(so you can now choose between haskell-simple-indent, haskell-indent, and the new haskell-indentation). I haven't tried this new algorithm much, but people who dislike haskell-indent might want to give it a try.
It works for me and I believe it indeed behaves much more rational. The doc in the file haskell-indentation.el is misleading. It states using function turn-on-haskell-indentation, which is removed according to Changelog. And the default definition of haskell-mode-hook in haskell-mode.el is somewhat offending, so I recommend remove the two autoload lines. Index: haskell-mode.el =================================================================== RCS file: /cvs/fptools/CONTRIB/haskell-modes/emacs/haskell-mode.el,v retrieving revision 1.32 diff -u -b -B -r1.32 haskell-mode.el --- haskell-mode.el 28 Feb 2008 22:23:36 -0000 1.32 +++ haskell-mode.el 14 Apr 2009 22:24:53 -0000 @@ -504,8 +504,6 @@ ;;;###autoload(add-to-list 'auto-mode-alist '("\\.\\(?:[gh]s\\|hi\\)\\'" . haskell-mode)) ;;;###autoload(add-to-list 'auto-mode-alist '("\\.l[gh]s\\'" . literate-haskell-mode)) -;;;###autoload(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) -;;;###autoload(add-hook 'haskell-mode-hook 'turn-on-haskell-indent) (defcustom haskell-hoogle-command (if (executable-find "hoogle") "hoogle") -- c/* __o/* <\ * (__ */\ <

Michael Mossey wrote:
I'm a beginner, but I'll chime in and say I use Emacs with haskell-mode. It's auto-indentation is a bit complex in behavior which is unappealing (I feel like I never know what it's going to do when I hit tab), but I would be curious what someone with more experience feels about that.
Yes. Don't use it. Use this: http://kuribas.hcoop.net/haskell-indentation.el (The message from Stefan appears to suggest this will be bundled with the next haskell-mode release - that's excellent news). It is much more predictable - TAB always moves right to the next valid position, BACKSPACE always moves left.

Melanie_Green
Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows.
I'd use vim, even on windoze. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.

I use Intype for Haskell editing on Windows. Although Intype is still in development it has the potential to be one of the best editors for Windows. A bundle with syntax highlighting and Textmate-like snippets is available at http://bitbucket.org/felixmar/haskell-itbundle/.

Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows.
Thx in advanced
I don't use editors with automatic indentation. Instead, I forget the layout rule (i.e., module Main (main) where {main = putStrLn Hi where {Hi="Hello World"}}). Then I send the result to a pretty printer. It's a lot easier to get code to make the parser happy without layout, and pretty printers do a really good job. Problem is, my pretty printer stoped working. There's 'hstidy' in hackage, but I'm not sure it's alive. Best, Maurício

Has anyone tried Yi?
On Sun, Apr 12, 2009 at 11:23 PM, Melanie_Green
Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows.
Thx in advanced -- View this message in context: http://www.nabble.com/Best-text-editor-tp23018470p23018470.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, Apr 13, 2009 at 7:18 PM, FFT
Has anyone tried Yi?
Yes... and I rather like it.
On Sun, Apr 12, 2009 at 11:23 PM, Melanie_Green
wrote: Hi I would like to follow the crowd and find out what text editor
everyone
uses for haskell on windows.
Thx in advanced -- View this message in context: http://www.nabble.com/Best-text-editor-tp23018470p23018470.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

FFT
Has anyone tried Yi?
Yes, and I figured I'd have to edit the keymap to get productive. While it features a fully functional subset of vim that's more than enough to efficiently edit files, it's not the subset I use... and then I was too lazy to actually do it. Documentation is badly lacking, too, it's like trying to configure xmonad without xmonad-contrib and all the docs. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.

On Tue, 2009-04-14 at 11:34 +0200, Achim Schneider wrote:
Yes, and I figured I'd have to edit the keymap to get productive. While it features a fully functional subset of vim that's more than enough to efficiently edit files, it's not the subset I use... and then I was too lazy to actually do it.
As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
Documentation is badly lacking, too, it's like trying to configure xmonad without xmonad-contrib and all the docs.
This is slowly improving, and Yi's haddock documentation now builds fine. This should soon be available on Hackage also, when the Haddock there is upgraded. Jeff Wheeler

On Wed, Apr 15, 2009 at 8:57 AM, Jeff Wheeler
As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
My main gripe with the vi emulation in Yi was in vty mode[1] and how it was unable to tell that 'esc' wasn't always 'meta-'. e.g., If I leave insert mode with esc and hit j to go down a line too quickly it interpreted it as meta-j. Quite annoying. This was a little while ago though. Also, I remember the cursor would go beyond the last character in a line in command mode, which is very un-vi-ish. At the time I remember thinking I should try and fix these things myself... but.. umm... [1] vty Yi is the only one I would use--coding must always live inside a screen session :) I really dislike wrapping a GUI around vi(m). I don't want toolbars, tabs, scrollbars nor menus. I don't even want a titlebar. Absolute full screen terminal running screen is perfect. :)

Excerpts from Toby Hutton's message of Wed Apr 15 05:00:16 +0200 2009:
On Wed, Apr 15, 2009 at 8:57 AM, Jeff Wheeler
wrote: As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
My main gripe with the vi emulation in Yi was in vty mode[1] and how it was unable to tell that 'esc' wasn't always 'meta-'. e.g., If I leave insert mode with esc and hit j to go down a line too quickly it interpreted it as meta-j. Quite annoying. This was a little while ago though.
I think this one is fixed, at least I cannot reproduce it.
Also, I remember the cursor would go beyond the last character in a line in command mode, which is very un-vi-ish. At the time I remember thinking I should try and fix these things myself... but.. umm...
This one have been fixed too.
[1] vty Yi is the only one I would use--coding must always live inside a screen session :) I really dislike wrapping a GUI around vi(m). I don't want toolbars, tabs, scrollbars nor menus. I don't even want a titlebar. Absolute full screen terminal running screen is perfect. :)
+1 -- Nicolas Pouillard

On Thu, Apr 16, 2009 at 1:32 PM, Nicolas Pouillard < nicolas.pouillard@gmail.com> wrote:
Excerpts from Toby Hutton's message of Wed Apr 15 05:00:16 +0200 2009:
On Wed, Apr 15, 2009 at 8:57 AM, Jeff Wheeler
wrote: As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
My main gripe with the vi emulation in Yi was in vty mode[1] and how it was unable to tell that 'esc' wasn't always 'meta-'. e.g., If I leave insert mode with esc and hit j to go down a line too quickly it interpreted it as meta-j. Quite annoying. This was a little while ago though.
I think this one is fixed, at least I cannot reproduce it.
Also, I remember the cursor would go beyond the last character in a line in command mode, which is very un-vi-ish. At the time I remember thinking I should try and fix these things myself... but.. umm...
This one have been fixed too.
[1] vty Yi is the only one I would use--coding must always live inside a screen session :) I really dislike wrapping a GUI around vi(m). I don't want toolbars, tabs, scrollbars nor menus. I don't even want a titlebar. Absolute full screen terminal running screen is perfect. :)
+1
Can/Does yi integrate ghci somehow? That'd be most outstanding, but I've not seen it done. I use yi sometimes for SVN commits :-) Dave
-- Nicolas Pouillard _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Thu, Apr 16, 2009 at 4:40 PM, David Leimbach
On Thu, Apr 16, 2009 at 1:32 PM, Nicolas Pouillard
wrote: Excerpts from Toby Hutton's message of Wed Apr 15 05:00:16 +0200 2009:
On Wed, Apr 15, 2009 at 8:57 AM, Jeff Wheeler
wrote: As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
My main gripe with the vi emulation in Yi was in vty mode[1] and how it was unable to tell that 'esc' wasn't always 'meta-'. e.g., If I leave insert mode with esc and hit j to go down a line too quickly it interpreted it as meta-j. Quite annoying. This was a little while ago though.
I think this one is fixed, at least I cannot reproduce it.
Also, I remember the cursor would go beyond the last character in a line in command mode, which is very un-vi-ish. At the time I remember thinking I should try and fix these things myself... but.. umm...
This one have been fixed too.
[1] vty Yi is the only one I would use--coding must always live inside a screen session :) I really dislike wrapping a GUI around vi(m). I don't want toolbars, tabs, scrollbars nor menus. I don't even want a titlebar. Absolute full screen terminal running screen is perfect. :)
+1
Can/Does yi integrate ghci somehow? That'd be most outstanding, but I've not seen it done. I use yi sometimes for SVN commits :-) Dave
There is GHC API usage of sorts if you enable shim. But it doesn't do anything very impressive currently; the most impressive thing I've used it for in Yi is to insert the typesig of the top-level function at point. -- gwern

Jeff Wheeler
As one of the Yi developers, I'd love to hear some more specific feedback on this. Do you remember any specific Vim features that were missing?
Nope, but I'll be writing bug reports next time, at the very least. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.

Melanie_Green wrote: > Hi I would like to follow the crowd and find out what text editor everyone > uses for haskell on windows. * Far Manager + Colorer plugin (http://www.farmanager.com/index.php?l=en) * HippoEdit (http://www.hippoedit.com/)

As a long time *NIX person, I would have to recommend gViM, regardless of the OS, The strongpoint being, learn one editor really well and use on all environments. Many years ago I did program my Emacs with Lisp to give it the indents I wanted, but I still stayed with ViM. -- Andrew in Edinburgh,Scotland. Alexandr N. Zamaraev wrote: > Melanie_Green wrote: >> Hi I would like to follow the crowd and find out what text editor >> everyone >> uses for haskell on windows. > * Far Manager + Colorer plugin > (http://www.farmanager.com/index.php?l=en) > * HippoEdit (http://www.hippoedit.com/) > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe -- -- Andrew

Hello Alexandr, Tuesday, April 14, 2009, 6:37:38 AM, you wrote: >> Hi I would like to follow the crowd and find out what text editor everyone >> uses for haskell on windows. > * HippoEdit (http://www.hippoedit.com/) i've tried HippoEdit and don't recommend it. it's work in progress so i immediately hit several bugs -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

I recommend Vim highly; however, it can take a while to get used to it. There are versions of Vim that offer close integration with your GUI's native keybindings; on Windows I believe that setup is called Cream. In all fairness, I am not that knowledgeable about work on Windows -- on the one occasion where I have worked on Windows for an extended period of time, I installed Moka 5 and a Linux VM and did all my editing through that. -- Jason Dusek

Melanie_Green
Hi I would like to follow the crowd and find out what text editor everyone uses for haskell on windows.
Have you considered using leksah? While it doesn't focus on being an editor, it's still a darn fine way to edit Haskell. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.
participants (24)
-
Achim Schneider
-
Alexandr N. Zamaraev
-
Andrew Smith
-
Bulat Ziganshin
-
David Leimbach
-
david48
-
Felix Martini
-
FFT
-
Gwern Branwen
-
Jason Dusek
-
Jeff Wheeler
-
Juan Pedro Bolivar Puente
-
Jules Bean
-
Ketil Malde
-
Maurício
-
Melanie_Green
-
Michael Mossey
-
Michael P Mossey
-
Neal Alexander
-
Nicolas Pouillard
-
Peter Verswyvelen
-
Stefan Monnier
-
Toby Hutton
-
Xiao-Yong Jin