Open gracjan opened 9 years ago
I think there are people who have a do
offset at 4 and a where
offset at 2. I would not merge those values.
Indeed. For example Johan Tibell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
Tibell style has only where as exception. This is way less than 6 special undocumented cases that we have now.
It's actually unclear to how one is supposed to replicate @tibbe's style with haskell-indentation
currently. I currently use,
'(haskell-indentation-ifte-offset 4)
'(haskell-indentation-layout-offset 4)
'(haskell-indentation-left-offset 4)
as recommended in haskell-style.el
and yet bindings in where
clauses are indented two spaces too far,
hello hi = do
doThings aBinding
where
aBinding = hi
What am I missing here?
@bgamari: looks like a bug to me.
Note that the indentation issue that I mention above came up again in #1042.
All of those should be replaced by a single defcustom:
That defcustom should inherit value from
c-basic-offset
.