I have recently taken over maintainership of Haskell-mode, and after making a bunch of changes, I figured it would be a good idea to make a new release. You can find this new release at: http://www-perso.iro.umontreal.ca/~monnier/elisp/ If you think it should also be found at http://www.haskell.org/haskell-mode/, then please tell John Peterson to get back to me (my email to him seem to go straight to the bitbucket. John?). This release has several changes that have all been only lightly tested, especially w.r.t compatibility with various Emacsen. See appended the NEWS file that describes some of the notewirthy changes. Stefan Changes since 1.45: * keybindings C-c <char> have been replaced by C-c C-<char> so as not to collide with minor modes. * The following modules are now automatically activated without having to add anything to haskell-mode-hook: haskell-font-lock (just turn on global-font-lock-mode). haskell-decl-scan (just bind `imenu' to some key). * In recent Emacsen, haskell-doc hooks into eldoc-mode. * haskell-hugs and haskell-ghci are superceded by inf-haskell. * Indentation rules have been improved when using layout inside parens/braces. * Symbols like -> and \ can be displayed as actual arrows and lambdas. See haskell-font-lock-symbols. * Tweaks to the font-lock settings. Among other things paren-matching with things like \(x,y) should work correctly now. * New maintainer <monnier@gnu.org>.
Stefan Monnier wrote:
I have recently taken over maintainership of Haskell-mode, and after making a bunch of changes, I figured it would be a good idea to make a new release. You can find this new release at:
Thank you!
This release has several changes that have all been only lightly tested, especially w.r.t compatibility with various Emacsen.
It works (as far as I tried) on my emacs: GNU Emacs 21.3.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2003-09-23 on Weber While playing with the new mode I discovered a small deficiency in the menu "Declarations" -> "Imports" (that I've never used before). The names of the imported modules are cut off after the first dot. Instead of i.e. "Data.List" only "Data" is displayed. (There may be several dots in a module name.)
* haskell-hugs and haskell-ghci are superceded by inf-haskell.
I did not understand this. The .emacs file is unchanged and contains the line: (add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) So how is inf-haskell activated? Thanks again, Christian
While playing with the new mode I discovered a small deficiency in the menu "Declarations" -> "Imports" (that I've never used before). The names of the imported modules are cut off after the first dot. Instead of i.e. "Data.List" only "Data" is displayed. (There may be several dots in a module name.)
Thanks, I'll take a look at it.
* haskell-hugs and haskell-ghci are superceded by inf-haskell. I did not understand this. The .emacs file is unchanged and contains the line: (add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) So how is inf-haskell activated?
By removing the above line from your .emacs. inf-haskell behaves differently (most importantly it uses compile.el rather than cooking its own. The upside is that you can use C-x `, the downside is that it probably suffers from incompatibility between different versions of compile.el (it was already very different between Emacs and XEmacs and Emacs-CVS has yet-another-very-different version)). So I've tried to make sure old things still work. I recommend you try inf-haskell and tell me what problems you encounter with it. Stefan
A bit more than 4 years ago, you wrote:
Stefan Monnier wrote:
This release has several changes that have all been only lightly tested, especially w.r.t compatibility with various Emacsen.
It works (as far as I tried) on my emacs:
GNU Emacs 21.3.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2003-09-23 on Weber
While playing with the new mode I discovered a small deficiency in the menu "Declarations" -> "Imports" (that I've never used before). The names of the imported modules are cut off after the first dot. Instead of i.e. "Data.List" only "Data" is displayed. (There may be several dots in a module name.)
I have just fixed this bug in the CVS repository of haskell-mode. Stefan "Never quite sure if it's «better late than never» or «better never than too late»."
Hi, thanks for you work! The indentation works much better than before. However, I have some feature requests/bugs: - indentation in do monad: lines after "let" should have 2 possible indentations. One for new let bindings (how it is currently) and one for further monad expressions. Example: do expr1 let foo = bar foo2 = bar2 expr2 -- this is the line I mean - an identifier with ' changes the indentation of the following lines, which should not be the case. Example: let bar = case foo of _ -> blabla bar' = case foo of _ -> blabla Cheers, Georg On Thu, 25 Nov 2004 18:34:12 -0500, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
I have recently taken over maintainership of Haskell-mode, and after making a bunch of changes, I figured it would be a good idea to make a new release. You can find this new release at:
http://www-perso.iro.umontreal.ca/~monnier/elisp/
If you think it should also be found at http://www.haskell.org/haskell-mode/, then please tell John Peterson to get back to me (my email to him seem to go straight to the bitbucket. John?).
This release has several changes that have all been only lightly tested, especially w.r.t compatibility with various Emacsen.
See appended the NEWS file that describes some of the notewirthy changes.
Stefan
Changes since 1.45:
* keybindings C-c <char> have been replaced by C-c C-<char> so as not to collide with minor modes.
* The following modules are now automatically activated without having to add anything to haskell-mode-hook: haskell-font-lock (just turn on global-font-lock-mode). haskell-decl-scan (just bind `imenu' to some key).
* In recent Emacsen, haskell-doc hooks into eldoc-mode.
* haskell-hugs and haskell-ghci are superceded by inf-haskell.
* Indentation rules have been improved when using layout inside parens/braces.
* Symbols like -> and \ can be displayed as actual arrows and lambdas. See haskell-font-lock-symbols.
* Tweaks to the font-lock settings. Among other things paren-matching with things like \(x,y) should work correctly now.
* New maintainer <monnier@gnu.org>.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
-- ---- Georg Martius, Tel: (+49 34297) 89434 ---- ------- http://www.flexman.homeip.net ---------
thanks for you work! The indentation works much better than before. However, I have some feature requests/bugs: - indentation in do monad: lines after "let" should have 2 possible indentations. One for new let bindings (how it is currently) and one for further monad expressions. Example: do expr1 let foo = bar foo2 = bar2 expr2 -- this is the line I mean
- an identifier with ' changes the indentation of the following lines, which should not be the case. Example: let bar = case foo of _ -> blabla bar' = case foo of _ -> blabla
Thanks, I'll see what I can do about it. The indentation algorithm is pretty hairy, and although I have the original author in the same building, I can't guarantee any progress on it. BTW, do I understand correctly that these are not new bugs? Stefan
On Fri, 26 Nov 2004 16:38:26 -0500, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
thanks for you work! The indentation works much better than before. However, I have some feature requests/bugs: - indentation in do monad: lines after "let" should have 2 possible indentations. One for new let bindings (how it is currently) and one for further monad expressions. Example: do expr1 let foo = bar foo2 = bar2 expr2 -- this is the line I mean
- an identifier with ' changes the indentation of the following lines, which should not be the case. Example: let bar = case foo of _ -> blabla bar' = case foo of _ -> blabla
Thanks, I'll see what I can do about it. The indentation algorithm is pretty hairy, and although I have the original author in the same building, I can't guarantee any progress on it. BTW, do I understand correctly that these are not new bugs?
Stefan
Yes, these problems have been there before and I just caught the chance to report them. Georg
participants (3)
-
Christian Maeder -
Georg Martius -
Stefan Monnier