[Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Svein Ove Aas
I'm happy to (finally) announce haskell-mode 2.8.0, which can be found at
http://projects.haskell.org/haskellmode-emacs/

This is a feature release. I'll let the changelog speak for itself:


* Minimal indentation support for arrow syntax

* Autolaunch haskell-mode for files starting with #!/usr/bin/runghc
 and similar

* Added minimal major mode for parsing GHC core files, courtesy of Johan Tibell.
 There is a corresponding Haskell menu entry.

* Allow configuration of where-clause indentation; M-x customize-group
 haskell-indentation.


You can expect a 2.8.1 or even 2.8.2 in the near future, as I attempt
to empty the bug list, but I thought I might as well get the new
features out there quickly. There's bound to be new bugs associated
with them.

--
Svein Ove Aas
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Christopher Done
Hey Svein,

Any chance of including haskell-align-imports somehow in the next release?

http://gist.github.com/453933 (Re-license it for inclusion however you
wish, I don't care.)

On 2 July 2010 14:27, Svein Ove Aas svein@aas.no wrote:
 I'm happy to (finally) announce haskell-mode 2.8.0, which can be found at
 http://projects.haskell.org/haskellmode-emacs/

 This is a feature release. I'll let the changelog speak for itself:


 * Minimal indentation support for arrow syntax

 * Autolaunch haskell-mode for files starting with #!/usr/bin/runghc
  and similar

 * Added minimal major mode for parsing GHC core files, courtesy of Johan 
 Tibell.
  There is a corresponding Haskell menu entry.

 * Allow configuration of where-clause indentation; M-x customize-group
  haskell-indentation.


 You can expect a 2.8.1 or even 2.8.2 in the near future, as I attempt
 to empty the bug list, but I thought I might as well get the new
 features out there quickly. There's bound to be new bugs associated
 with them.

 --
 Svein Ove Aas
 ___
 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


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Christopher Done
On 2 July 2010 14:45, Svein Ove Aas sve...@gmail.com wrote:
 My current project is to rewrite the indenter in haskell, using
 haskell-src-exts and such. Aligning imports will probably be trivial
 once that is done, but the work of integrating it now would probably
 also be wasted.

That sounds like a good idea. I considered using haskell-src-exts
myself but didn't bother at the time.

 I might do it anyway, if it's sufficiently little work. Let's see.

It should just be case of choosing what keybinding to use.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Ivan Lazar Miljenovic
Deniz Dogan deniz.a.m.do...@gmail.com writes:

 2010/7/2 Svein Ove Aas sve...@gmail.com:
 My current project is to rewrite the indenter in haskell, using
 haskell-src-exts and such. [snip]

 Why do you want to rewrite the indenter in Haskell? If haskell-mode
 has any external dependencies such as that one, it will most likely
 never make it into Emacs.

Why should it become part of Emacs (especially when they finally seem
to be starting to work on standardising packaging, etc. to make it
easier to install third party modes)?

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Ivan Lazar Miljenovic
Alex Ott alex...@gmail.com writes:

 Re

 Svein Ove Aas  at Fri, 2 Jul 2010 15:36:06 +0200 wrote:
  SOA On Fri, Jul 2, 2010 at 3:23 PM, Deniz Dogan deniz.a.m.do...@gmail.com 
 wrote:
   Why do you want to rewrite the indenter in Haskell? If haskell-mode
   has any external dependencies such as that one, it will most likely
   never make it into Emacs.
  
  SOA In no particular order:

  SOA - For any given line, there are typically several possible
  SOA indentations. We can cycle between these, but it's better to minimize
  SOA them.

  SOA - I want the parser to be as accurate as possible. This essentially
  SOA means reimplementing haskell-src-exts, unless I *use*
  SOA haskell-src-exts.

 May be you can use semantic to make a parser? Semantic is already included
 into emacs, and I hope, that it will make life easier. Plus we'll
 automatically get lot of other functionality - name completion, navigation,
 etc. 

My understanding is that semantic is more aimed at C-like languages (I
seem to recall reading a discussion a while back about someone trying to
use semantic to parse Python or something like that and failing), and as
such wouldn't work too well for Haskell.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Ivan Lazar Miljenovic
Deniz Dogan deniz.a.m.do...@gmail.com writes:

 Why should it not become part of Emacs?

 I would like it if this Haskell indenter was external to haskell-mode
 itself instead of making haskell-mode external to Emacs.

Why should it?

Look at all the effort that the Haskell community went through to
_unbundle_ libraries from GHC, and now Emacs is bundling more and more
with it, which means it's harder to use a newer version of a package
than the bundled one.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Svein Ove Aas
On Sat, Jul 3, 2010 at 1:07 AM, Deniz Dogan deniz.a.m.do...@gmail.com wrote:

 Since there is no reason what so ever to integrate this external
 Haskell indenter tightly into haskell-mode, I don't see any reason to
 do so. Doing so would only mean that haskell-mode will most likely
 never be a part of Emacs, meaning that anyone looking for programming
 Haskell in Emacs would have to download an external library, be it
 through package.el or not.

 To put it short, there are no pros in making the new Haskell indenter
 a strict part of haskell-mode.

Sure there is. I expect there to be quite a lot of shared code.

It's not solely an indenter; the same interface and capabilities will
be used for a debugger, refactoring, and type signature info.
Haskell-mode should still work without it, to about the same degree as
today, but actually doing so would be a *major* degradation compared
to the state of the art once I'm done with it.

In any case, I expect the actual installation to be via cabal-install.

-- 
Svein Ove Aas
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Ivan Lazar Miljenovic
Deniz Dogan deniz.a.m.do...@gmail.com writes:

 Doing so would only mean that haskell-mode will most likely never be a
 part of Emacs, meaning that anyone looking for programming Haskell in
 Emacs would have to download an external library, be it through
 package.el or not.

And what's so bad about that?

I suppose it might be possible to have a cut-down haskell-mode in Emacs
for casual hacking, the way there's python-mode and pymacs.

 To put it short, there are no pros in making the new Haskell indenter
 a strict part of haskell-mode.

There are if it brings in a lot of cool features.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe