haskell / haskell/stylish-haskell

Option to align equals signs

Open
#74 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

I would find it useful to be able to align equals signs by padding them with spaces.

For example

```
filter p (x:xs)
| p x = x : filter p xs
| otherwise = filter p xs
```

would become

```
filter p (x:xs)
| p x = x : filter p xs
| otherwise = filter p xs
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by locating the formatter's handling of guarded equations and any existing configuration for formatting options. Done means an option can pad the equals signs in the shown example while preserving the existing unaligned output when the option is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.