[Haskell] Beyond ASCII only editors for Haskell

Benjamin Franksen benjamin.franksen at bessy.de
Tue May 24 05:45:48 EDT 2005


On Tuesday 24 May 2005 11:26, you wrote:
> Benjamin Franksen <benjamin.franksen at bessy.de> writes:
> >> It seems to me that the layout conventions work pretty well. I do
> >> not see much code where it is not used, so generally people must
> >> like it.
>
> Works for me.  It helps *a lot* to have a sensible editor that knows
> where to position things of course. I use Emacs, but should probably
> upgrade the mode, as it doesn't place 'let' in do-blocks correctly.
>
> > Please forgive me for taking this as an opportunity to rant about
> > the single misfeature of Haskell's layout syntax, which is how
> > if/then/else must be layed out. The problem is that the 'else' must
> > be indented further than the 'if', so that this:
>
> You're talking about monads and do-notation here?  I have no problems
> with this in pure code.  

Hmm. You are right. This only gives a syntax error inside a 'do...' 
block. And now as I think about why this is the case, I can't see a 
good way to fix it, other than giving if/then/else-completion a higher 
precedence than layout. Hmmmm.

Ben


More information about the Haskell mailing list