haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Ormolu range format support #1602

Closed Avi-D-coder closed 4 years ago

Avi-D-coder commented 4 years ago

This is a bit of a hack but it works pretty great. We format lines of equal or increasing indention, not precise ranges, and there are a few documented edge cases.

Avi-D-coder commented 4 years ago

If there are no more objections I'm going to merge this.

Avi-D-coder commented 4 years ago

There is one more edge case, reintroduced in the switch to DynFlags case I found today.

Avi-D-coder commented 4 years ago

I've been using this version today, no issues so far, so I'm going to merge.