ANN: haskell-mode 2.5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

ANN: haskell-mode 2.5

Svein Ove Aas
Fellow Haskellers,

I'm happy to announce the release of haskell-mode 2.5.

* By web: http://projects.haskell.org/haskellmode-emacs/
* By darcs: http://code.haskell.org/haskellmode-emacs/

Furthermore, there is a change of maintainer; if you have
issues, you should now contact me instead of Stefan Monnier.


haskell-mode 2.5
=============

I was uncertain whether to mark this a minor or major release.

On the one hand, very little has changed in core functionality.
On the other, a new minor mode for indentation has been added:
haskell-indentation.el, written by Kristof Bastiaensen.

It will be familiar to those of you who have been tracking the CVS
repository; there are only minor bug-fixes relative to the last
version to be uploaded there.

For the rest of you:

haskell-indentation.el is an intelligent indentation mode in the
style of haskell-indent.el, with a few changes to improve
usability. Specifically, instead of a tab cycle, backspace is now
used to reduce the nesting level, while tab will increase it.

The behaviour is otherwise substantially the same; only valid
nestings will be considered.

It can be turned on by adding
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
to your .emacs file, as described in the README. As usual,
it is mutually exclusive with the two other indentation modes.

Known bugs:
* Occasionally, the haskell-indentation parser will get stuck
  on what it considers to be invalid haskell code, and refuse
  to accept your commands; this includes, mainly,
  haskell-newline-and-indent. To avoid annoyance, if you bind
  RET to haskell-newline-and-indent, you should bind M-RET
  to plain newline.

--
Svein Ove Aas
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Deniz Dogan-3
2009/10/25 Svein Ove Aas <[hidden email]>:

> Fellow Haskellers,
>
> I'm happy to announce the release of haskell-mode 2.5.
>
> * By web: http://projects.haskell.org/haskellmode-emacs/
> * By darcs: http://code.haskell.org/haskellmode-emacs/
>
> Furthermore, there is a change of maintainer; if you have
> issues, you should now contact me instead of Stefan Monnier.
>
>
> haskell-mode 2.5
> =============
>
> I was uncertain whether to mark this a minor or major release.
>
> On the one hand, very little has changed in core functionality.
> On the other, a new minor mode for indentation has been added:
> haskell-indentation.el, written by Kristof Bastiaensen.
>
> It will be familiar to those of you who have been tracking the CVS
> repository; there are only minor bug-fixes relative to the last
> version to be uploaded there.
>
> For the rest of you:
>
> haskell-indentation.el is an intelligent indentation mode in the
> style of haskell-indent.el, with a few changes to improve
> usability. Specifically, instead of a tab cycle, backspace is now
> used to reduce the nesting level, while tab will increase it.
>
> The behaviour is otherwise substantially the same; only valid
> nestings will be considered.
>
> It can be turned on by adding
> (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
> to your .emacs file, as described in the README. As usual,
> it is mutually exclusive with the two other indentation modes.
>
> Known bugs:
> * Occasionally, the haskell-indentation parser will get stuck
>   on what it considers to be invalid haskell code, and refuse
>  to accept your commands; this includes, mainly,
>  haskell-newline-and-indent. To avoid annoyance, if you bind
>  RET to haskell-newline-and-indent, you should bind M-RET
>  to plain newline.
>
> --
> Svein Ove Aas
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

Great news!

--
Deniz Dogan
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Paulo Tanimoto-2
In reply to this post by Svein Ove Aas
On Sun, Oct 25, 2009 at 10:14 AM, Svein Ove Aas <[hidden email]> wrote:
> Fellow Haskellers,
>
> I'm happy to announce the release of haskell-mode 2.5.
>

Thank you for stepping up, Svein!  Also thanks to Stefan for
maintaining haskell-mode for so long.  I updated the Wiki entry:

  http://haskell.org/haskellwiki/Haskell_mode_for_Emacs

with your name and download links.  Can you check if it's OK?  I
wasn't sure which of your email addresses to use.  On a side note,
that page looks so messy.  : )

Paulo
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Svein Ove Aas
On Sun, Oct 25, 2009 at 5:34 PM, Paulo Tanimoto <[hidden email]> wrote:
> I updated the Wiki entry:
>
>  http://haskell.org/haskellwiki/Haskell_mode_for_Emacs
>
> with your name and download links.  Can you check if it's OK?  I
> wasn't sure which of your email addresses to use.  On a side note,
> that page looks so messy.  : )
>
It looks fine, ignoring the mess. :P

While you're at it, you might want to copy the "minimal setup" from
what is described in the README, i.e. including the indentation setup.
Or not, if you wish; I'll leave that to your judgement.


--
Svein Ove Aas
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Paulo Tanimoto-2
On Sun, Oct 25, 2009 at 11:50 AM, Svein Ove Aas <[hidden email]> wrote:
> It looks fine, ignoring the mess. :P
>
> While you're at it, you might want to copy the "minimal setup" from
> what is described in the README, i.e. including the indentation setup.
> Or not, if you wish; I'll leave that to your judgement.
>

Done!  One of these days we'll get to reorganize the page too.

Paulo
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Svein Ove Aas
In reply to this post by Svein Ove Aas
On Sun, Oct 25, 2009 at 4:14 PM, Svein Ove Aas <[hidden email]> wrote:
> Fellow Haskellers,
>
> I'm happy to announce the release of haskell-mode 2.5.
>
> * By web: http://projects.haskell.org/haskellmode-emacs/
> * By darcs: http://code.haskell.org/haskellmode-emacs/
>
Make that 2.5.1. There were some niggling remaining issues that should
now be fixed.

--
Svein Ove Aas
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Colin Paul Adams
In reply to this post by Svein Ove Aas
>>>>> "Svein" == Svein Ove Aas <[hidden email]> writes:

    Svein> Known bugs: * Occasionally, the haskell-indentation parser
    Svein> will get stuck   on what it considers to be invalid haskell

Quite often.

    Svein> code, and refuse to accept your commands; this includes,
    Svein> mainly, haskell-newline-and-indent. To avoid annoyance, if
    Svein> you bind RET to haskell-newline-and-indent, you should bind

I don't, but haskell-indentation.el does.

    Svein> M-RET to plain newline.

So perhaps the mode should also do this? here's a patch:

-- haskell-indentation.el~ 2009-10-27 19:27:40.000000000 +0000
+++ haskell-indentation.el 2009-10-27 19:29:43.000000000 +0000
@@ -67,7 +67,7 @@
 (defconst haskell-indentation-mode-map
   (let ((keymap (make-sparse-keymap)))
     (define-key keymap [?\r] 'haskell-newline-and-indent)
-    (define-key keymap [?\M-r] 'newline)
+    (define-key keymap [?\M-\r] 'newline)
     (define-key keymap [backspace] 'haskell-indentation-delete-backward-char)
     (define-key keymap [?\C-d] 'haskell-indentation-delete-char)
     keymap))

--
Colin Adams
Preston Lancashire
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: ANN: haskell-mode 2.5

Svein Ove Aas
On Tue, Oct 27, 2009 at 8:31 PM, Colin Paul Adams
<[hidden email]> wrote:

>>>>>> "Svein" == Svein Ove Aas <[hidden email]> writes:
>
>    Svein> Known bugs: * Occasionally, the haskell-indentation parser
>    Svein> will get stuck   on what it considers to be invalid haskell
>
> Quite often.
>
>    Svein> code, and refuse to accept your commands; this includes,
>    Svein> mainly, haskell-newline-and-indent. To avoid annoyance, if
>    Svein> you bind RET to haskell-newline-and-indent, you should bind
>
> I don't, but haskell-indentation.el does.
>
>    Svein> M-RET to plain newline.
>
> So perhaps the mode should also do this? here's a patch:
>
Thanks, but I've already got a (slightly hacky) solution to the
problem, namely catching the errors and bypassing the indenter in this
case - grab the darcs version if you're impatient.

I'll put it together with the various other patches and bug reports
I've been sent (thanks for those, guys!), and have a 2.5.2 out by
sunday.

--
Svein Ove Aas
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe