haskell / haskell/haskell-mode

turn-on-haskell-indent doesn't work

Open
#1,860 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

I prefer behaviour of haskell-indent-mode since I like to use it to repate function name between type anotation and implementation.

Following manual for haskell-mode https://haskell.github.io/haskell-mode/manual/latest/Indentation.html

I tried to add:

```el
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
```

into configuration but it doesn't seem to have an effect.

When I open a .hs file, haskell-mode is enabled but I still see `haskell-indentiation-mode` is used and I need to manually start `haskell-indent-mode`.

I did not (yet) find any way how to realiably add haskell-indent-mode onto haskelll-mode-hook yet so I have no workaround.

Contributor guide

Open the contributing guide

Research direction

Start with the haskell-mode-hook setup described in the issue and inspect how turn-on-haskell-indent relates to haskell-indent-mode and haskell-indentation-mode. Reproduce the behavior by opening a .hs file, then verify that the configured hook activates haskell-indent-mode without manual intervention.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.