-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
A list of features rejected by Tweag (not quite definitively in some cases) that we might want to have as options:
- Prettier and more diff-friendly import/export lists: Minimise diff in module header tweag/ormolu#409
- Respect more newlines: Respect more newlines? tweag/ormolu#74 (parts of this have been implemented in Ormolu)
- Import groups (it's worth thinking about how this plays along with tooling for auto-inserting imports e.g. HLS)
- Not always one line between top-level definitions
- Multiple blank lines can be useful for semantic grouping
- Zero is nice for trivial definitions, especially instances
- Break up long lines: Does ormolu have a concept of max line length? tweag/ormolu#508
- It's possible that this contradicts Ormolu's design enough to be a nightmare to implement fully
- No space before record opening brace: Against space in record updates and record patterns tweag/ormolu#565
- Keep multiline haddocks: Multiline Haddock comments are "normalized" into single-line Haddock comments tweag/ormolu#641
- Set default GHC options: Convenient default options tweag/ormolu#519
- Seeing as we already have support for config files, this shouldn't be difficult. Only issue is that these files only currently affect
PrinterOpts.
- Seeing as we already have support for config files, this shouldn't be difficult. Only issue is that these files only currently affect
- Keep track of source locations: Need to track file locations through formatting tweag/ormolu#433
- Hang record constructors (and updates): Do not hang record constructors tweag/ormolu#492
- Keep end-of-line argument Haddocks: Change the style of type signatures tweag/ormolu#389
- Only possible from GHC 9.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels