haskell / haskell/stylish-haskell

`space_surround` for record updates

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

Description

The docs for `space_surround`:
```
Space surround option affects formatting of import lists on a single line....
```

Can this feature be extended to also cover record updates, such as:
```
-- | Generate generics using purescript-generics-rep
useGenRep :: Switch
useGenRep = Endo $ \settings -> settings{genericsGenRep = True}
```

IMO it would be nice to modify `settings{genericsGenRep = True}` to `settings { genericsGenRep = True }`

or `settings {genericsGenRep = True}`

`stylish-haskell 0.14.4.0`

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.