haskell / play-haskell

Haskell Playground
129 stars 8 forks source link

Button for running a code formatter #9

Open tomsmeding opened 1 year ago

tomsmeding commented 1 year ago

To make the playground double as a place for trying out different Haskell code formatters without having to download and build them all, it would be nice to have a UI element to run your code through one of a couple of high-profile code formatters (ormolu, brittany, stylish-haskell, maybe even configurable fourmolu?, others?). How exactly this UI element should look, I'm not sure. It definitely shouldn't take up a lot of space if you're not using it.

Some things to think about:

Kleidukos commented 1 year ago

How much should depend on how long a formatter takes to process some file; hopefully this is not very long usually?

It's usually fairly quick yes