haskell / haskell/haskell-mode

"=>" is not indented as "->" nor "::"

Open
#1,713 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

Hi,

"=> is not indented as "->" in function type signature and there is no obvious way to achieve this
through customize-variable.

Expected unified indentation
```
foo
:: (Monad m)
=> Int
-> m String
```

Actual indentation
```
foo
:: (Monad m)
=> Int
-> m String
```

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the indentation logic for Haskell function type signatures and the customization path for indentation variables; reproduce the shown example and make `=>` align with `::` and `->`, then verify the existing indentation tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, haskell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.