Half-width indentation for "where" keyword

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue May 18 09:13:43 EDT 2010


Johan Tibell <johan.tibell at gmail.com> writes:
> I'd like to change haskell-indentation (i.e. add an option) so it indents
> the "where" keyword with half an indent (e.g. 1 space instead of two).

On the other hand, you then have the problem where it might not be as
obvious that there's an indentation (nested where clauses, etc.,
especially with blank lines).

> Example:
>
> myFun = do
>     print "hi"
>     print name
>   where
>     name = "Mini Me"

You seem to have a 2-space indent here...

> [snip]
>
> myFun2 = go ...
>   where
>     go = ...

... and here

> which would look like this with the current scheme
>
> myFun2 = go ...
>     where
>         go = ...

This looks like a 4-space indent to me.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskellmode-emacs mailing list