radian-software / apheleia

🌷 Run code formatter on buffer contents without moving point, using RCS patches and dynamic programming.
MIT License
523 stars 74 forks source link

Add ormolu and fourmolu, remove brittany #221

Closed edslocomb closed 9 months ago

edslocomb commented 9 months ago

Found while trying to make fmt-build that the installer for brittany was broken, and couldn't fix it.

This removes brittany, and adds the ormolu and fourmolu formatters for haskell, and sets ormolu as the default for haskell-mode.

raxod502 commented 9 months ago

I see, because Brittany is noted as not currently maintained. However, I don't think it's appropriate for us to remove it without notice. Let's leave it in, and fix the installation. I can help with that.

The other additions looks good, though. This PR can just add those two formatters and we can fix Brittany separately.