[Haskell-cafe] Indentation woes
individu at gmail.com
Thu Jul 26 14:56:57 EDT 2007
I wish to be able to indent my code like so:
> longFunctionName various and sundry arguments
> | guard1 = body1
> | guard2 = body2
> | ...
> where declarations
That is, with guards and where clauses indented to the same level as
the function name.
This seems like a perfectly reasonable indentation style to me. It
also happens to be the preferred style in Clean, another
layout-sensitive functional language. I believe it is not uncommon in
ML dialects as well. So why is it that I'm not allowed to use it in
More information about the Haskell-Cafe