You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sumtorial::Integer->Integer
sumtorial 0=0
sumtorial n = n + sumtorial (n-1)
hailstone::Integer->Integer
hailstone n
|mod n 2==0=div n 2|otherwise=3*n +1sumPair:: (Int,Int) ->Int
sumPair (x,y) = x + y
I have in my ~/.emacs following line: (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
And now, when I use tab at line 7, the indentation of 2 spaces gets f*cked up to 4 spaces. When i press return at the end of line 8, im indented at the new line by 19 characters.
But now the funny thing is, when I start emacs with -q and do M x turn-on-haskell-indentation then, at least the problem in line 7, is away.
So how to fix my settings?
The text was updated successfully, but these errors were encountered:
I have following code:
I have in my
~/.emacs
following line:(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
And now, when I use tab at line 7, the indentation of 2 spaces gets f*cked up to 4 spaces. When i press return at the end of line 8, im indented at the new line by 19 characters.
But now the funny thing is, when I start emacs with
-q
and doM x turn-on-haskell-indentation
then, at least the problem in line 7, is away.So how to fix my settings?
The text was updated successfully, but these errors were encountered: