tweag / ormolu

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

Emacs package for ormolu #132

Closed vyorkin closed 5 years ago

vyorkin commented 5 years ago

I've created a very basic emacs package to format code with ormolu: https://github.com/vyorkin/ormolu.el. Just letting you know in case you want to add a link to the README ;)

mrkkrp commented 5 years ago

Thanks! I'll try to evaluate it when I have time. There always has been a plan to create something like this, but little thought has been put into actually designing such a package, because we need to get the tool itself right (well, sufficiently right) first.

ghost commented 5 years ago

@vyorkin, this looks useful. I stumbled on this ticket while attempting to customize format-all.el, which defaults to brittany.

@mrkkrp, any thoughts on allowing optInputFile to be Nothing (stdin) or - (stdin)?

mrkkrp commented 5 years ago

@tuncer I'm not against the feature, you can go ahead and open a PR for that.

ghost commented 5 years ago

@mrkkrp see #150

mrkkrp commented 5 years ago

I mentioned the package in the readme.