tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
958 stars 83 forks source link

Not breaking long import lines #567

Closed ncihnegn closed 4 years ago

ncihnegn commented 4 years ago

Describe the bug Ormolu is not breaking long import lines.

To Reproduce import LLVM.AST (Definition (GlobalDefinition), Module, defaultModule, functionDefaults, moduleDefinitions, moduleName, noFastMathFlags)

Expected behavior Breaking the long lines to respect 80 char line length limit

Environment

Additional context

mboes commented 4 years ago

This is by design. See the README and the DESIGN.md document. If you write the import on a single line, Ormolu will leave it that way. If you want it on multiple lines, give Ormolu an input where the import spans at least two lines.

mrkkrp commented 4 years ago

In general, there is no such thing as line length limit in Ormolu.