[Haskell-cafe] haskell-mode indentation

Kirill Kuvaldin kuvkir at mac.com
Fri Mar 31 12:17:46 EST 2006


Hello there.

Being an emacs-addicted person, I'm using haskell-mode for editing haskell code.
But its default indentation rule doesn't seem to be correct.
I mean when i type something like the code below, i've got the 
following indentation:

doSomeStuff a b c = do
  somefunc a
           anotherfunc b
                       onemorefunc c

Whereas the correct indentation (in my opinion) is as follows:

doSomeStuff a b c = do
  somefunc a
  anotherfunc b
  onemorefunc c

Thus I need hitting TAB key 2 or 3 times to make indentation as mentioned above.

Cheers,
Kirill



More information about the Haskell-Cafe mailing list